Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Vue example #35

Closed
Closed
@colem213

Description

@colem213

I'm getting these errors when trying to run the browser-vue example:

 ERROR  Failed to compile with 2 errors                                                                                              3:08:46 AM

 error  in ./node_modules/levelup/lib/levelup.js

Module not found: Error: Can't resolve 'util' in '/workspaces/js-ipfs-examples/examples/browser-vue/node_modules/levelup/lib'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
        - install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "util": false }

 error  in ./node_modules/libp2p-kad-dht/src/routing-table/index.js

Module not found: Error: Can't resolve './generated-prefix-list.json' in '/workspaces/js-ipfs-examples/examples/browser-vue/node_modules/libp2p-kad-dht/src/routing-table'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions