Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.
Discussion options

You must be logged in to vote

We are locking this thread now to avoid confusion. As a next step:

We have an update from our engineer that may fix your issue and allow you to remove the CLI variable:
 
tsconfig.json with "module": "esnext" (or "module": "nodenext") must also have package.json with "type": "module".

If you run into a problem, it will likely be at runtime and look something like:

ReferenceError: require is not defined in ES module scope, you can use import instead

If you want to continue using CommonJS instead of ES Modules, the solution would be to update your tsconfig.json file with "module": "commonjs".

Also note that TypeScript will allow you to mix CJS and ESM, however Node.js will not. So you ca…

Replies: 8 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@steelballs
Comment options

Comment options

You must be logged in to vote
3 replies
@duiker101
Comment options

@danielkraus
Comment options

@steelballs
Comment options

Comment options

You must be logged in to vote
6 replies
@krystof-k
Comment options

@danielkraus
Comment options

@swarnava
Comment options

@Palmaswell
Comment options

@natapg
Comment options

Comment options

You must be logged in to vote
1 reply
@smaeda-ks
Comment options

Answer selected by swarnava
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet