Closed pierre275 closed 1 year ago
@achingbrain can you weigh in here? As far as I'm concerned a "main"
doesn't make sense for our ESM-only packages, it's time to upgrade toolchains to support ESM. Are you adding "main"
back in any of your other packages to support this kind of thing?
2023-02-21 maintainer conversation: we are only supporting ESM.
@rvagg is going to get confirmation from @achingbrain on whether a "main" is needed here.
No, all our modules use "exports"
and not "main"
.
The error message above is:
the package
..../node_modules/@ipld/dag-pb/package.json
was successfully found. However this package itself specifies amain
module field that could not be resolved (..../node_modules/@ipld/dag-pb/index
. Indeed, none of these files exist: ...
This is interesting as @ipld/dag-pb does not specify a main
module field.
@pierre275 what is react native using to do the bundling on the dev server?
Closing since haven't heard a response.
This field is required to recognise library entry point in metro bundler
this change fixes this error