-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug]A package is trying to access a peer dependency that should be provided by its direct ancestor but isn't #587
Comments
My best guess is that both of those packages should list https://cdn.jsdelivr.net/npm/@typescript-eslint/parser/package.json |
1. Case: https://github.com/vvni/yunmeng-mall-webapp.git
2. No warning when installing
在 2019年11月18日 +0800 AM11:05,Maël Nison <notifications@github.com>,写道:
…
1. No reproduction case makes it hard to be sure
2. Do you have a peer dependency warning when running yarn install?
My best guess is that both of those packages should list typescript as an (optional) peer dependency, since typescript-estree requires to access it:
***@***.***/parser/package.json
https://cdn.jsdelivr.net/npm/eslint-config-react-app/package.json
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
As this is closed, is there any solution for this?
|
@viceice in your case this is because TypeScript being missing isn't displayed here because |
if i add the following to my packageExtensions:
"eslint-config-airbnb-typescript@*":
peerDependencies:
eslint: "*"
eslint-plugin-import: "*"
typescript: "*"
|
yarn: 2.0.0-rc.21
|
I get the same error message but with much less information about what is actually missing:
So, I have no idea how to work around this. This is my project: |
Same. @Mellbourn Did you ever find a solution to this? Fwiw, my issue is occurring with styled-components. |
@JosNun nope. Gave up on berry for now |
@JosNun I've had similar issues with many packages (I have circa 40 entries in |
@darioblanco i have typescript listed in my |
Should works with # .yarnrc.yml
pnpMode: "loose"
pnpFallbackMode: "all" or # .yarnrc.yml
nodeLinker: "node-modules" |
Failed to load parser '@typescript-eslint/parser' declared in 'BaseConfig » /Users/vvni/OffSource/yunmeng-mall-webapp/.yarn/virtual/eslint-config-react-app-virtual-fa3c1f4ab2/0/cache/eslint-config-react-app-npm-5.0.2-b7b16e6537-1.zip/node_modules/eslint-config-react-app/index.js#overrides[0]': A package is trying to access a peer dependency that should be provided by its direct ancestor but isn't
Required package: typescript (via "typescript")
Required by: @typescript-eslint/typescript-estree@virtual:44860fa3e51ac3b5ff8d790a8c36fb7d6ab296a0c395a0e1c3db2cc1dcc9433416e53144c77819fccdd3d8ce8abba0ee2d1c2f0c6a00888059b912e0edde4e26#npm:2.7.0 (via /Users/vvni/OffSource/yunmeng-mall-webapp/.yarn/virtual/@typescript-eslint-typescript-estree-virtual-dd21f9bbc0/0/cache/@typescript-eslint-typescript-estree-npm-2.7.0-1b6868dd7c-1.zip/node_modules/@typescript-eslint/typescript-estree/dist/parser.js)
The text was updated successfully, but these errors were encountered: