Skip to content

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

Open
@jasny

Description

@jasny

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions