Closed
Description
When using esm
package (https://github.com/standard-things/esm) even most simple package.json configurations (only dependancies are esm
and graphql-yoga
) results in the Error: Cannot use GraphQLSchema "[object Object]" from another module or realm.
error when using imports.
node -r esm testWithImport.js
will fail while node testWithRequire.js
and node -r esm testWithRequire.js
will work.