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.

codemirror-graphql esm imports not consistent

See original GitHub issue

I noticed that within the es module files (i.e. info.esm.js), they’re importing the non-es module version of the utils – causing import errors:

Expected: info.esm.js:

import { getArgumentReference, getDirectiveReference, getEnumValueReference, getFieldReference, getTypeReference } from './utils/SchemaReference.esm';

Actual info.esm.js:

import { getArgumentReference, getDirectiveReference, getEnumValueReference, getFieldReference, getTypeReference } from './utils/SchemaReference';

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
lastmjscommented, May 20, 2021

Could we reopen this issue? I am using Snowpack, and this is causing me problems

0reactions
acaocommented, Dec 13, 2021

Duplicate of #1606

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESM importing all files from folder with index.js not working
My purpose is to import all files from stuff/ folder using the index.js file. I know that in ES6, having an index.js file...
Read more >
Node Modules at War: Why CommonJS and ES ... - Code Red
ESM scripts can import CJS scripts, but only by using the “default import” syntax ... (Fear not, I'll explain them all here in...
Read more >
Documentation - ECMAScript Modules in Node.js - TypeScript
When a .ts file is compiled as an ES module, ECMAScript import / export syntax ... files are always CommonJS modules, and there's...
Read more >
import - JavaScript - MDN Web Docs - Mozilla
The static import declaration is used to import read-only live bindings which are exported by another module. The imported bindings are ...
Read more >
API - esbuild
If needed, the working directory that esbuild uses can be set with the working ... The esm format will automatically be enabled when...
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