Today I came to know about web3.storage and wanted to test a file upload feature to store the date in IPFS. But out of the box, after calling the library using my react app I go the below error.
Failed to compile.
Module not found: Error: Can't resolve 'process/browser' in '/home/user/Documents/Github/App-Frontend/node_modules/streaming-iterables/dist'
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/streaming-iterables/dist/index.mjs 929:18-25
Module not found: Error: Can't resolve 'process/browser' in '/home/user/Documents/Github/App-rontend/node_modules/streaming-iterables/dist'
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/streaming-iterables/dist/index.mjs
Cannot read properties of undefined (reading 'module')
webpack compiled with 2 errors
Any resolution or workaround will be heart fully appreciated. Thanks!
Hi,
Today I came to know about web3.storage and wanted to test a file upload feature to store the date in IPFS. But out of the box, after calling the library using my react app I go the below error.
Any resolution or workaround will be heart fully appreciated. Thanks!