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
rollup-plugin-inject: failed to parse graphql/jsutils/instanceOf.mjs #3928
Comments
This is also tracked as an issue in Nuxt and nitro: nuxt/nuxt#21768. Other issues like #3918 also refer to the same problem, but it seem it will be solved soon by PR #3927. The module tries to access pnpm patch graphql
code <generated_folder> In export const instanceOf = function instanceOf(value, constructor) {
return value instanceof constructor
} Apply the patch. pnpm patch-commit <generated_folder> The resulting patch should appear in package.json to be applied during deployment on Cloudflare. "pnpm": {
"patchedDependencies": {
"graphql@16.7.1": "patches/graphql@16.7.1.patch"
}
} |
Any updates on the fix ? I was checking the PR but that also doesnt seem to have merged. |
Bumping this... |
UP |
1 similar comment
UP |
When this library is used in the Nuxt 3 project and compiled for Cloudflare it fails like this:
Happens in version 16.7.1 and 16.7.0 but works with 16.6.0 and 17.0.0-alpha.2.
Repro: https://stackblitz.com/edit/github-twqhau-upewai
Start with:
NITRO_PRESET=cloudflare-pages npm run build
The text was updated successfully, but these errors were encountered: