Skip to content

Error adding helia dependency #9077

Answered by mischnic
jeluard asked this question in General
Jun 7, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

That package has only an exports field, no main or some other legacy field: https://github.com/ipfs/helia/blob/671ec874e90fbdcaf79d9d8253822fd85cee8bc5/packages/helia/package.json#L29

https://parceljs.org/blog/v2-9-0/#new-resolver:

Unfortunately, enabling support for package.json "exports" is a breaking change. When a package declares "exports", consumers can no longer import files that are not exported. In addition, due to exports conditions like "import" and "require", there is a possibility of a dual package hazard. For these reasons, exports support is currently opt-in and must be explicitly enabled in your project. This can be done by adding the following to your project root packag…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jeluard
Comment options

@jeluard
Comment options

@mischnic
Comment options

mischnic Jun 9, 2023
Collaborator

Answer selected by jeluard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants