Skip to content
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

Uncaught SyntaxError: missing name after . operator #3940

Closed
MartyWind opened this issue Jul 25, 2023 · 1 comment
Closed

Uncaught SyntaxError: missing name after . operator #3940

MartyWind opened this issue Jul 25, 2023 · 1 comment

Comments

@MartyWind
Copy link

Hi,

I get this error in my Firefox JS console:
Uncaught SyntaxError: missing name after . operator

When I click the link behind this message, it jumps to this code:

// node_modules/graphql/jsutils/instanceOf.mjs
var instanceOf = globalThis.process && globalThis."development" === "production" ? function instanceOf2(value, constructor) {

I assume it's this, but I'm new to JS, so I don't know where this gets translated from ts to mjs.

globalThis.process?.env.NODE_ENV === 'production'

The process?.env.NODE_ENV seems to be replaced with its literal value, what results in an incorrect syntax.

Am I using it wrong? How can I prevent that?

Greetings

@MartyWind
Copy link
Author

I dug deeper into the exiting issues - and not just looked for my error - and found that this is a duplicate of #3928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant