Skip to content

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

@jasny

Description

@jasny
Contributor

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

Activity

added
need/triageNeeds initial labeling and prioritization
on Jun 12, 2023
jasny

jasny commented on Jun 12, 2023

@jasny
ContributorAuthor

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

joshLong145

joshLong145 commented on Aug 12, 2024

@joshLong145

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

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

        Participants

        @jasny@joshLong145

        Issue actions

          Unable to use in React Native application, because package.json missing from exports · Issue #336 · ipfs/js-ipfs-unixfs