-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
If it helps, here is a repo with the minimum to reproduce the behavior: https://github.com/kaiunido/express-module-error Edit: for a little more context, I was trying to test |
Beta Was this translation helpful? Give feedback.
-
you can enable esModuleInterop to allow importing default exports without explicit naming.
|
Beta Was this translation helpful? Give feedback.
-
@Abdel-Monaam-Aouini this option is already enabled in the extended
{
"$schema": "https://json.schemastore.org/tsconfig",
"_version": "20.1.0",
"compilerOptions": {
"lib": ["es2023"],
"module": "node16",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "node16"
}
} |
Beta Was this translation helpful? Give feedback.
-
Hi 👋 Its rather simple, in your |
Beta Was this translation helpful? Give feedback.
Hi 👋
Its rather simple, in your
package.json
file you have defined the package name asexpress
. It is causing a conflict. Please change it to something else and the app will work as expected.