-
-
Notifications
You must be signed in to change notification settings - Fork 818
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
Peer dependency warnings from @graphql-tools/graphql-tag-pluck on @babel/core #5066
Comments
Yarn warning:
Yarn workaround: # .yarnrc.yml
packageExtensions:
# awaiting fix: https://github.com/ardatan/graphql-tools/issues/5066
'@graphql-tools/graphql-tag-pluck@*':
dependencies:
'@babel/core': '*' |
I don't use PNPM or newer versions of Yarn. PRs are welcome to fix it. |
https://next.babeljs.io/docs/v8-migration/#babelplugin-syntax-import-assertions
- import value from "module" assert { type: "json" };
+ import value from "module" with { type: "json" }; |
Closing this issue since peer dependency has bene added in the latest version. |
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
@graphql-tools/graphql-tag-pluck
has a dependency on@babel/plugin-syntax-import-assertions
. That package has a peer dependency on@babel/core^7.0.0-0
. As a result, pnpm is emitting peer dependency warnings due to@babel/core
not being present:The dependency for
@babel/plugin-syntax-import-assertions
was added in #4863. Since that package has a peer dependency on@babel/core
, that should be added as well so that consumers without@babel/core
do not get peer dependency warnings or an alternative approach devised which makes the syntax transformation opt-in.To Reproduce
Steps to reproduce the behavior:
Add
@graphql-tools/graphql-tag-pluck
as a dependency without installing@babel/core
.pnpm
will emit a peer dependency warning. It's been a while since I've usednpm
oryarn
, but I suspect they would exhibit similar warnings.Expected behavior
No peer dependency warnings.
Environment:
@graphql-tools/...
: See dependency tree in descriptionAdditional context
The text was updated successfully, but these errors were encountered: