Closed fawazahmed0 closed 2 years ago
This appears to rely on the exports
field in package.json, which is not yet supported by Parcel. Duplicate of #4155.
For now, I am using esm bundle version
import { Web3Storage } from 'web3.storage/dist/bundle.esm.min'
It seems to build fine for me.
🐛 bug report
Parcel build fails with web3.storage package
🎛 Configuration (.babelrc, package.json, cli command)
Package.json
cli command:
npm run build
🤔 Expected Behavior
Should build the web app
😯 Current Behavior
Build fails
💁 Possible Solution
🔦 Context
I am trying to import web3.storage package, which provides 1TB+ storage for free
💻 Code Sample
Code Repository
🌍 Your Environment