You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same issue, seems to me like an issue with Babel+ESM. I tried updating @babel/helper-plugin-utils and @babel/template in client-preset, but that didn't seem to fix it.
@taobojlen have you submitted a PR with your change?
nikitalocalhost
added a commit
to nikitalocalhost/graphql-code-generator
that referenced
this issue
Jan 13, 2024
Which packages are impacted by your issue?
@graphql-codegen/client-preset
Describe the bug
When building app with vite using babelOptimizerPlugin from client-preset, building throws an error:
This happens when
package.json
type set to module.When manually changing
node_modules/@graphql-codegen/client-preset/esm/babel.js:42
template
totemplate.smart
build is successfulYour Example Website or App
https://stackblitz.com/edit/github-p5p2s9?file=vite.config.ts
Steps to Reproduce the Bug or Issue
From example:
yarn vite build
From vite react-ts template:
@graphql-codegen/cli
and@graphql-codegen/client-preset
to templateExpected behavior
Build successful
Screenshots or Videos
No response
Platform
graphql
version: 16.8.1@graphql-codegen/cli
version: 5.0.0@graphql-codegen/client-preset
version: 4.1.0Codegen Config File
Additional context
No response
The text was updated successfully, but these errors were encountered: