graphql-hive / graphql-hive/graphql-modules

Support NodeJS ES Modules

Open
#1,066 2 comments 0 reactions 0 assignees View on GitHub
waiting for release
Dominant language
TypeScript
Stars
1.3k
Forks
113
Avg merge
3h 36m
Merged PRs (30d)
1

Description

I'm trying to use named imports from `.mjs` files now that modules are no longer experimental and running into [the same issue that `graphql-tools` had](https://github.com/apollographql/graphql-tools/issues/913):

**gm.mjs**
```js
import { GraphQLModule } from '@graphql-modules/core';
```
```
$ node gm.mjs
(node:27782) ExperimentalWarning: The ESM module loader is experimental.
file:///home/dandv/gm.mjs:1
import { GraphQLModule } from '@graphql-modules/core';
^^^^^^^^^^^^^
SyntaxError: The requested module '@graphql-modules/core' does not provide an export named 'GraphQLModule'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.