Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't run webpack example #310

Closed
FabioNevesRezende opened this issue Sep 8, 2024 · 1 comment
Closed

can't run webpack example #310

FabioNevesRezende opened this issue Sep 8, 2024 · 1 comment

Comments

@FabioNevesRezende
Copy link

steps to reproduce:

npm version: 10.8.3
node version: 22.7

git clone https://github.com/ipfs-examples/helia-examples

cd helia-examples/examples/helia-webpack

npm install

npm start

when I try to access the created webpage on localhost:3000 it fails with

Compiled with problems:
ERROR
execOptions.factory.call is not a function
__webpack_require__@http://localhost:3000/main.bundle.js:122342:33
fn@http://localhost:3000/main.bundle.js:122553:21
../../node_modules/weald/dist/src/index.js@http://localhost:3000/main.bundle.js:122104:85
__webpack_require__@http://localhost:3000/main.bundle.js:122342:33
fn@http://localhost:3000/main.bundle.js:122553:21
../../node_modules/@libp2p/logger/dist/src/index.js@http://localhost:3000/main.bundle.js:76994:82
__webpack_require__@http://localhost:3000/main.bundle.js:122342:33
fn@http://localhost:3000/main.bundle.js:122553:21
../../node_modules/@helia/unixfs/dist/src/commands/utils/resolve.js@http://localhost:3000/main.bundle.js:60880:91
__webpack_require__@http://localhost:3000/main.bundle.js:122342:33
fn@http://localhost:3000/main.bundle.js:122553:21
../../node_modules/@helia/unixfs/dist/src/commands/cat.js@http://localhost:3000/main.bundle.js:59024:94
__webpack_require__@http://localhost:3000/main.bundle.js:122342:33
fn@http://localhost:3000/main.bundle.js:122553:21
../../node_modules/@helia/unixfs/dist/src/unixfs.js@http://localhost:3000/main.bundle.js:61108:93
__webpack_require__@http://localhost:3000/main.bundle.js:122342:33
fn@http://localhost:3000/main.bundle.js:122553:21
../../node_modules/@helia/unixfs/dist/src/index.js@http://localhost:3000/main.bundle.js:61036:87
__webpack_require__@http://localhost:3000/main.bundle.js:122342:33
fn@http://localhost:3000/main.bundle.js:122553:21
./src/app.js@http://localhost:3000/main.bundle.js:96487:90
__webpack_require__@http://localhost:3000/main.bundle.js:122342:33
fn@http://localhost:3000/main.bundle.js:122553:21
./src/index.js@http://localhost:3000/main.bundle.js:96674:84
__webpack_require__@http://localhost:3000/main.bundle.js:122342:33
@http://localhost:3000/main.bundle.js:123411:56
@http://localhost:3000/main.bundle.js:123413:12
ERROR in ../../node_modules/weald/dist/src/browser.js 199:21-28
Module not found: Error: Can't resolve 'process/browser' in '/home/fabio/src/helia-examples/node_modules/weald/dist/src'
Did you mean 'browser.js'?
BREAKING CHANGE: The request 'process/browser' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
ERROR in ../../node_modules/weald/dist/src/browser.js
Cannot read properties of undefined (reading 'module')
@achingbrain
Copy link
Contributor

This was fixed by achingbrain/weald#2 so should work now.

Please re-open this issue if you're still seeing the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants