Error when using with typescript and esm #648
Closed
bluescorpian
started this conversation in
General
Replies: 2 comments 2 replies
-
Try adding "--esModuleInterop" to your compiler options in tsconfig.json: {
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "nodenext",
"target": "ESNext",
"esModuleInterop": true
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
-
I was able to fix it, {
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "nodenext",
"target": "ESNext",
"skipLibCheck": true
}
} you need to add skipLibCheck, which skips checking library declaration files. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here is my program
index.ts
tsconfig.json
package.json has type: module
dependencies: discord.js-selfbot-v13, typescript, @types/node
output from tsc https://pastebin.com/wKELXTbU
Beta Was this translation helpful? Give feedback.
All reactions