question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to compile

See original GitHub issue

Error



./node_modules/graphql-language-service-interface/esm/GraphQLLanguageService.js 100:23
--
239 | Module parse failed: Unexpected token (100:23)
240 | You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
241 | \|         }
242 | \|         let customRules = null;
243 | >         if (extensions?.customValidationRules &&
244 | \|             typeof extensions.customValidationRules === 'function') {
245 | \|             customRules = extensions.customValidationRules(this._graphQLConfig);


Temporary Solution

downgrade graphql-language-service-interface to 2.8.2 We’re were forced to use https://github.com/rogeriochaves/npm-force-resolutions which works in this case but is not ideal.

Actual Solution

https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining

Potential Issues

Carets https://github.com/graphql/graphiql/blob/main/packages/graphiql/package.json#L52

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
floyd-maycommented, Apr 20, 2021

@acao how would one watch for or subscribe to whatever the next release is so one could unpin those versions?

2reactions
acaocommented, Apr 19, 2021

We’ve adjusted esm exports to target es6, so this should be fixed next release! cjs should still be es6, except for the CLI and server ofc

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack failed to compile - Stack Overflow
1 Answer 1 · inside index.js you are importing a css file and webpack is unable to handle it, this is what the...
Read more >
Why my React App Failed To Compile - Timonwa's Notes
Bugs and Errors will come in different shapes and sizes, styles and formats you never expect, causing your react app not to compile....
Read more >
Failed to compile error when running on dev server locally ...
After freshly run create-react-app demo cd ./demo npm start Then modify App.css. Console shows Failed to compile. Error in .
Read more >
[XSIM 43-3410] Failed to compile one of the generated C files.
ERROR: [XSIM 43-3410] Failed to compile one of the generated C files. Hello,. I just tried to run a simple simulation but it...
Read more >
Failed to compile. Module not found: Error: - Support
Having this error building a react (typescript) app The error begins at timestamp 5:09:47 PM 5:09:05 PM: Build ready to start 5:09:07 PM: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found