-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
[3.4.0] ESM, err_module_not_found: graphql/language/parser #2175
Comments
I'm also experiencing this in an ESM context |
wen |
👋 We're also running into this issue. We're trying to upgrade from 3.1.2 -> 4.0.1 and get this same error. Changing the import statement in |
Seems to be fixed with 4.0.2. At least tested on nextjs 13.2.0. Thanks |
Fixed for us as well as of the last release. |
I'll close then. Thanks again |
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Describe the bug
When upgrading to 3.4.0 from 3.3.0 in a nextjs with esmExternals enabled. I've tracked it down when upgrading graphql-mesh in this P/R. I hope it's well related to this package and that I don't create too much noise. Thanks for your time.
To Reproduce Steps to reproduce the behavior:
Pull belgattitude/nextjs-monorepo-example#2604
yarn install cd ./apps/nextjs-app yarn build yarn start
Then go to http://localhost:3000/api/gateway/graphql
PS: there's also an E2E test here
https://github.com/belgattitude/nextjs-monorepo-example/actions/runs/3082071761/jobs/4981334076 (Look for
Error [ERR_MODULE_NOT_FOUND]
).Seems the error has exists since:
https://github.com/kamilkisiela/graphql-inspector/pull/2164/files#diff-f9827f191cd581d3c88ec472ffd00e90d00eab21d4e7525e7dbaeb78deab5018
Workaround
Lock resolutions to 3.3.0 in package.json
Expected behavior
Properly import the graphql/language/parser
Environment:
@graphql-inspector/core
: 3.4.0graphql
: 16.6.0Additional context
nextjs
: 12.3.0 / babel / esmExternals: true (but I guess all esm imports will be impacted)The text was updated successfully, but these errors were encountered: