Giter Club home page Giter Club logo

Comments (12)

rafaelsorto avatar rafaelsorto commented on April 27, 2024 7

Having the same bug. It resolves to globalThis."development" === 'production' or production and it breaks the app.

from graphql-js.

vdineva avatar vdineva commented on April 27, 2024 4

Experiencing the same issue and this bug does not allow us to upgrade to the latest version and there's a security advisory for versions before 16.8.1: GHSA-9pv7-vfvm-6vr7

from graphql-js.

MaLiN2223 avatar MaLiN2223 commented on April 27, 2024 3

Got the same issue when using the ReactJS framework, keeping graphql on 16.6.0 seems to be the solution for us for now.

from graphql-js.

vdineva avatar vdineva commented on April 27, 2024 2

Just checking on the status of this issue. Is there a plan to address it and publish a new version? It's been open for a while now

from graphql-js.

JoviDeCroock avatar JoviDeCroock commented on April 27, 2024 1

What did you test @n05la3 the PR or whether the issue is present 😅 we need versions/... actual reproductions or at the very least version numbers of where this issue shows itself

from graphql-js.

TdyP avatar TdyP commented on April 27, 2024

Same issue here, with a Uncaught SyntaxError: missing name after . operator at runtime.
React project compiled with Vite.

Any plans for a fix?

Thanks

from graphql-js.

vdineva avatar vdineva commented on April 27, 2024

For anyone experiencing issues with v16.8.1, a workaround is to define globalThis.process.env.NODE_ENV in your bundler.
For Webpack it's:

new DefinePlugin({
   "globalThis.process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
})

from graphql-js.

mobsean avatar mobsean commented on April 27, 2024

see PR, this fixes the vue3, quasar, vite problem with graphql-js > 16.6

from graphql-js.

JoviDeCroock avatar JoviDeCroock commented on April 27, 2024

Hey,

Would anyone mind posting a reproduction to this issue leveraging vite/webpack/.... Does upgrading resolve the issue?

from graphql-js.

mobsean avatar mobsean commented on April 27, 2024

Hey,

Would anyone mind posting a reproduction to this issue leveraging vite/webpack/.... Does upgrading resolve the issue?

I checked your PR and fine with it. The problem in this issue is solved by this.

from graphql-js.

n05la3 avatar n05la3 commented on April 27, 2024

Hey,

Would anyone mind posting a reproduction to this issue leveraging vite/webpack/.... Does upgrading resolve the issue?

Tested with vite and it works fine.

from graphql-js.

n05la3 avatar n05la3 commented on April 27, 2024

I misread the comment. I experienced this issue in a Quasar 2.14.3 project with Vite 5.0.0 when upgrading from 16.6.0 to 16.8.1. I had used a patch to bypass this issue. Earlier today, I tested the changes in the PR in my project and it works fine.

from graphql-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.