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

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './public/extractFiles' is not defined by "exports" in /app/node_modules/extract-files/package.json #121

Open
irzhywau opened this issue Mar 13, 2023 · 5 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@irzhywau
Copy link

got this error when using node 18,
with node 16 it's a deprecated warning only.

Apparently it's about the dependencies, there is already a ticket that solve this issue in the buggy dependency jaydenseric/extract-files#17

$ npm list extract-files

[email protected] /app/api-leyer
└─┬ [email protected]
  └─┬ [email protected]
    ├─┬ @graphql-tools/[email protected]
    │ └─┬ [email protected]
    │   └── [email protected] deduped
    └─┬ @graphql-tools/[email protected]
      └── [email protected] overridden
@shawnmcknight
Copy link
Member

Same issue as noted in #103 (comment). The only solution today is to use the override functionality in your package manager:

npm overrides
pnpm overrides
yarn resolutions

@shawnmcknight
Copy link
Member

Currently, I am using the following pnpm overrides:

    "overrides": {
      "@graphql-tools/links@7>apollo-upload-client": "15.0.0",
      "@graphql-tools/url-loader@6>extract-files": "10.0.0",
      "graphql-request@5>extract-files": "10.0.0"
    },

@malaDev
Copy link

malaDev commented Mar 13, 2023

Im actually doing the same but I think it would be better to upgrade the deps on this repo

@nmeri17
Copy link

nmeri17 commented Aug 23, 2023

Currently, I am using the following pnpm overrides:

    "overrides": {
      "@graphql-tools/links@7>apollo-upload-client": "15.0.0",
      "@graphql-tools/url-loader@6>extract-files": "10.0.0",
      "graphql-request@5>extract-files": "10.0.0"
    },

@shawnmcknight is there a typo here? It's rejecting the > characters as invalid tags

@icebob
Copy link
Member

icebob commented Jun 25, 2024

For npm:

"overrides": {
    "@graphql-tools/links@7": {
      "apollo-upload-client": "15.0.0"
    },
    "@graphql-tools/url-loader@6": {
      "extract-files": "10.0.0"
    },
    "graphql-request@5": {
      "extract-files": "10.0.0"
    }
  }

@icebob icebob added bug Something isn't working dependencies Pull requests that update a dependency file labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

5 participants