-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: express #87
Comments
Yeah, the part where it says that it only supports built-in modules. |
Yes, for now you would need to bundle your code into one single file that only requires builtins before injecting it into the SEA. |
Hooo I didn't understand like that. Thanks for the clarification! |
FYI pkg has been archived now. I'm maintaining the most active fork here: https://github.com/yao-pkg/pkg If you need ESM support there some alternatives: yao-pkg/pkg#16 (comment) |
This will works if you do a build with just one file.
generate out.js : |
In my case I need to package a application that uses the |
I followed the steps you provided and successfully resolved a |
@robertsLando I've tried your esbuild.js file, but it's not works for me :(, I'm having issue with |
Hello,
I tried to compile my express app following the
Single executable applications
guide in but I've got this error :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
Did I miss something ?
The text was updated successfully, but these errors were encountered: