Closed minqianlu closed 3 months ago
There are a few problems with your setup.
parcel-bundler
to just parcel
a few years ago - see the deprecation notice on https://www.npmjs.com/package/parcel-bundler and the migration guide https://parceljs.org/getting-started/migration"main": "src/index.html"
from package.json
"type": "module"
to package.json
package.json
:
"@parcel/resolver-default": {
"packageExports": true
}
type="module"
to the script
tag in src/index.html
It works for me with these changes.
Please do take a closer look at the parcel example at https://github.com/ipfs-examples/helia-parcel - it shows how to get it working
Perfect, thank you @achingbrain.
When installing Helia into a Parcel-React project, Parcel doesn't seem able to resolve Helia or any of its related @helia/x packages.
I've created a mock project off of Parcel's official React example with the only change being importing
helia
and using it inApp.jsx
.