import { registerEnumType } from 'type-graphql';
^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'type-graphql' does not provide an export named 'registerEnumType'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
Environment (please complete the following information):
OS: AWS Lambda/Debian Bullseye dev container (macOS host)
Node 18 LTS
Package version 2.0.0-beta.4 (the issue does not occur on 2.0.0-beta.3)
Describe the Bug
When running type-graphql in an ES module, node throws the following error
To Reproduce
Create a sample app with this package.json
and this index.js
run
node index.js
Expected Behavior
The app runs fine and do not throw.
Logs
Environment (please complete the following information):