-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hello,
I tried to compile my express app following the Single executable applications
guide in but I've got this error :
node:internal/util/embedding:48
throw new ERR_UNKNOWN_BUILTIN_MODULE(id);
^
Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: express
at embedderRequire (node:internal/util/embedding:48:11)
at dist/app.js:141:33
at embedderRunCjs (node:internal/util/embedding:37:10)
at node:internal/main/embedding:18:8 {
code: 'ERR_UNKNOWN_BUILTIN_MODULE'
}
Node.js v21.6.0
It also appear with Node.js v20.10.0.
The app is written with typescript but the build is working when running in the terminal. Here is the tsconfig.json
{
"compilerOptions": {
"target": "ES5",
"lib": ["ES5"],
"module": "commonjs",
"rootDir": "./src",
"sourceMap": true,
"outDir": "./dist",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
Did I miss something ?
Metadata
Metadata
Assignees
Labels
No labels