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

patch transitive dependencies - No such package #24

Open
milahu opened this issue Oct 24, 2022 · 0 comments
Open

patch transitive dependencies - No such package #24

milahu opened this issue Oct 24, 2022 · 0 comments

Comments

@milahu
Copy link
Owner

milahu commented Oct 24, 2022

duplicate #20

actual

npx patch-package @tanstack/query-core
patch-package 6.4.14
No such package @tanstack/query-core

  File not found: node_modules/@tanstack/query-core/package.json

actual file exists in
node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/package.json

because pnpm creates a *deep* node_modules folder

in any case, the version should be pinned in /package.json

so ... tell the user to
install the package as a top-level dependency (this will install the patched version via symlink)
and run patch-package again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant