Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use in React Native application, because package.json missing from exports #336

Open
jasny opened this issue Jun 12, 2023 · 2 comments
Labels
need/triage Needs initial labeling and prioritization

Comments

@jasny
Copy link
Contributor

jasny commented Jun 12, 2023

When trying to build a React Native application, we get the following warning

warn Package ipfs-unixfs-importer has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /home/arnold/Projects/ltonetwork/universal-wallet/node_modules/ipfs-unixfs-importer/package.json

This can be solved by adding an export to package.json

"exports": {
 ...
  "./package.json": "./package.json"
}
@jasny jasny added the need/triage Needs initial labeling and prioritization label Jun 12, 2023
@jasny
Copy link
Contributor Author

jasny commented Jun 12, 2023

Other IPFS projects have similar issues. See ipfs/js-stores#230

@joshLong145
Copy link

Can also report this issues in Jest environments using NodeJs v20 and Jest version 27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

2 participants