Module not found: Can't resolve 'ipfs-car/blockstore/memory' from web3.storage/src/platform.web.js
In the popular hackathon boilerplate scaffold-eth which uses Create React App, adding web3.storage to the React site results in a "Failed to compile" error with the reason being "Module not found: Can't resolve 'ipfs-car/blockstore/memory'" which is referenced from the file web3.storage/src/platform.web.js.
Create React App's react-scripts depends on webpack v4 and others have said web3.storage works with webpack v5 but not v4. For now this means popular packages like scaffold-eth and create-react-app won't work with web3.storage.
Hi @tomosaigon I just tested in Create React App successfully - you should be able to use the prebuilt bundle like this:
import { Web3Storage } from 'web3.storage/dist/bundle.esm.min.js'
Please let me know if this doesn't work for you.
I tried import { Web3Storage } from 'web3.storage/dist/bundle.esm.min.js' and that works fine
Please let me know if this doesn't work for you.
Not Working
+1 - does not work.
Cannot find module 'ipfs-car/blockstore/fs' from '/workspaces/collectorx/node_modules/web3.storage/dist/src/lib.cjs'
I'm trying to use web3.storage in my client app - so it needs to work with browserify.
Did you both try importing the prebuilt bundle as mentioned above?
thanks! didn't know if that would work in browser situations, but got info that we only support webpack. so switched over.
Would be great if this could be part of the docs, but since i moved on, we can punt on this for now.
(to be clear, i got here from Google, so this is linked via SEO)
Also struggling with this:
I tried: import { Web3Storage } from 'web3.storage/dist/bundle.esm.min.js'
Keep getting this error

I'm also having the same problem with my React App.
- Node 16.13.2
- Yarn 1.22.17
- React 17.0.1
- react-scripts 4.0.3
- web3.storage 3.1.0
I've tried with both import { Web3Storage } from 'web3.storage' and import { Web3Storage } from 'web3.storage/dist/bundle.esm.min.js'
almost same exact setup as above. any fixes here?
Hi @tomosaigon I just tested in Create React App successfully - you should be able to use the prebuilt bundle like this:
import { Web3Storage } from 'web3.storage/dist/bundle.esm.min.js'Please let me know if this doesn't work for you.
Thanks it worked for me.