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

Open
#230 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
react-native, typescript

Research direction

Locate blockstore-core's package.json and inspect its existing exports map. Add the package.json subpath described in the issue, then verify that a React Native build no longer reports the invalid configuration warning.

Written by the indexing model from the issue text.

Description

need/triage

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

warn Package blockstore-core 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/blockstore-core/package.json

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

"exports": {
 ...
  "./package.json": "./package.json"
}
Dominant language
TypeScript
Stars
39
Forks
28
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ipfs/js-stores

All issues in ipfs/js-stores

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.