Open Nitorac opened 2 years ago
Hi @Nitorac, thanks for issue. I tried the same versions, but I did not find an error. Could you please also provide eventemitter3 version and your tsconfig.json? Maybe this issue related to moduleResolution setting.
As you said, I forgot to mention it's an ESM module project !
My eventemitter3 version is 4.0.7.
Here is my tsconfig.json :
{
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"module": "esnext",
"target": "esnext",
"lib": [
"esnext",
"esnext.asynciterable",
"dom",
"scripthost"
],
"strict": true,
"moduleResolution": "node",
"sourceMap": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"downlevelIteration": true,
"noImplicitAny": true,
"baseUrl": "./src",
"forceConsistentCasingInFileNames": true,
"paths": {
"*": [
"node_modules/"
],
...
}
},
"include": [
...
"node_modules/phaser3-rex-plugins-types"
],
"exclude": [
...
]
}
The problem is related to esModuleInterop config, I need some time to investigate this.
Has there been an update on this? Same error is happening on my end.
Hi, I have an issue when trying to tsc a project using @types/phaser3-rex-plugins-types.
Environment
Expected behavior
My project successfully compile with
tsc
Actual behavior
At compile time, I have this error :
Possible fix
This fix makes my project compile again