Я пытаюсь создать приложение на основе typescript
как сервер graphql
, используя webpack 4
.
, но получаю сообщения об ошибках типа:
ERROR in ./node_modules/graphql/index.mjs 49:0-53:205
Can't reexport the named export 'BREAK' from non EcmaScript module (only default export is available)
@ ./graphql/schema.ts
@ ./graphql/server.ts
ERROR in ./node_modules/graphql/index.mjs 64:0-98:42
Can't reexport the named export 'BreakingChangeType' from non EcmaScript module (only default export is available)
@ ./graphql/schema.ts
@ ./graphql/server.ts
ERROR in ./node_modules/graphql/index.mjs 36:0-47:50
Can't reexport the named export 'DEFAULT_DEPRECATION_REASON' from non EcmaScript module (only default export is available)
@ ./graphql/schema.ts
@ ./graphql/server.ts
ERROR in ./node_modules/graphql/index.mjs 64:0-98:42
Can't reexport the named export 'DangerousChangeType' from non EcmaScript module (only default export is available)
@ ./graphql/schema.ts
@ ./graphql/server.ts
ERROR in ./node_modules/graphql/index.mjs 49:0-53:205
Can't reexport the named export 'DirectiveLocation' from non EcmaScript module (only default export is available)
@ ./graphql/schema.ts
@ ./graphql/server.ts
ERROR in ./node_modules/graphql/index.mjs 58:0-60:675
Can't reexport the named export 'FieldsOnCorrectTypeRule' from non EcmaScript module (only default export is available)
@ ./graphql/schema.ts
@ ./graphql/server.ts
.....