You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { makeExecutableSchema } from '@graphql-tools/schema'
import { loadSchemaSync } from '@graphql-tools/load'
import { GraphQLFileLoader } from '@graphql-tools/graphql-file-loader'
import casual from 'casual'
const typeDefs = loadSchemaSync('./schema.graphql', {
loaders: [new GraphQLFileLoader()]
})
const schemaWithMocks = makeExecutableSchema({
typeDefs
})
export default schemaWithMocks
The Error I got is
Failed to compile.
./node_modules/@graphql-tools/load/index.mjs
Can't import the named export 'AggregateError' from non EcmaScript module (only default export is available)
Additional context
I got it worked as by following this solution.
Can Anyone provide a proper fix to this?
TIA 😄
The text was updated successfully, but these errors were encountered:
I think This seems an issue with the bundler with .mjs extensions.
hi @ardatan, Tq for the quick response. I really appreciate it.
Can you point me to where can I find the solution? It would really help me.
Describe the bug
Can't import the named export XXXX from non EcmaScript module (only default export is available)(https://stackoverflow.com/questions/69343038/cant-import-the-named-export-xxxx-from-non-ecmascript-module-only-default-expo)
Expected behaviour
Run without errors
Environment:
@graphql-tools/
: "8.2.0"My Code
The Error I got is
Additional context
I got it worked as by following this solution.
Can Anyone provide a proper fix to this?
TIA 😄
The text was updated successfully, but these errors were encountered: