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.

[bug] does not work with @angular/angular-cli@6.0.0

See original GitHub issue

The core issue is the same as https://github.com/angular/angular-cli/issues/10744 I’m not sure the fix should be only in @angular-devkit- to me it seems reasonable to expect that graphql lib provide a .js main file.

There is an additional complication. After editing @angular-devkit trying to fix .mjs issue according to https://github.com/graphql/graphql-js/issues/1272#issuecomment-377384574, I’m getting the following error:

instanceOf.mjs:3 Uncaught ReferenceError: process is not defined
    at Object../node_modules/graphql/jsutils/instanceOf.mjs (instanceOf.mjs:3)
    at __webpack_require__ (bootstrap:81)
    at Object../node_modules/graphql/type/definition.mjs (vendor.js:151316)
    at __webpack_require__ (bootstrap:81)
    at Object../node_modules/graphql/type/validate.mjs (vendor.js:153362)
    at __webpack_require__ (bootstrap:81)
    at Object../node_modules/graphql/graphql.mjs (vendor.js:146722)
    at __webpack_require__ (bootstrap:81)
    at Object../node_modules/graphql/index.mjs (vendor.js:146842)
    at __webpack_require__ (bootstrap:81)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:13
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
DmitryEfimenkocommented, May 28, 2018

when is this expected to be released?

3reactions
danutzcodrescucommented, Oct 27, 2018

I have update to graphql 14 and it solved the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

deprecated-addons/CHANGELOG.md at master - GitHub
Bug Fixes. UI: Fix links that are not working with plain left click (#6970); Core: Don't redefine process variable (#6991); Core: Don't mutate...
Read more >
Failed at the project@0.0.0 ng script in Angular - Stack Overflow
I have updated my angular/cli version from 8 to 13 as my global angular/cli was greator than local ...
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