You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: warning message still shows up even with disableExperimentalSEAWarning set to true #107
So, I have this issue, where i see this warning message, which doesn't affect my application logic:
(node:8292) Warning: Currently the require() provided to the main script embedded into single-executable applications only supports loading built-in modules.
To load a module from disk after the single executable application is launched, use require("module").createRequire().
Support forbundled module loading or virtual file systems are under discussionsin https://github.com/nodejs/single-executable
This is a separate warning for require()-ing unsupported builtin modules (which means it may or may not work - we have never fully vetted that the builtin that you use works in SEA, your code might happen to work, or it may not, or it may seem to work but it crashes on some input - nobody has checked that module for the SEA use case, so nobody knows for sure).
Hi there, I got this. I understand it's experimental so that's why I set disableExperimentalSEAWarning to true. IMO, the warning should be suppressed. Or please add another option to disable the message.
I would also strongly advocate making the output of this warning configurable or removing it. I build command line tools with SEA and from the perspective of the user of one of these tools it would be very strange (but rather unacceptable) to see this output every time it is called.
Activity
joyeecheung commentedon Aug 16, 2024
This is a separate warning for
require()-ing unsupported builtin modules (which means it may or may not work - we have never fully vetted that the builtin that you use works in SEA, your code might happen to work, or it may not, or it may seem to work but it crashes on some input - nobody has checked that module for the SEA use case, so nobody knows for sure).FiskPay commentedon Nov 1, 2024
Any update on the matter?
koooge commentedon Jan 7, 2025
Hi there, I got this. I understand it's experimental so that's why I set disableExperimentalSEAWarning to true. IMO, the warning should be suppressed. Or please add another option to disable the message.
mn4367 commentedon Jan 23, 2025
I would also strongly advocate making the output of this warning configurable or removing it. I build command line tools with SEA and from the perspective of the user of one of these tools it would be very strange (but rather unacceptable) to see this output every time it is called.
joyeecheung commentedon Jan 23, 2025
PRs are welcomed to fix it. It should be reasonably straightforward.
sea: suppress builtin warning with disableExperimentalSEAWarning option
sea: suppress builtin warning with disableExperimentalSEAWarning option
sea: suppress builtin warning with disableExperimentalSEAWarning option
sea: suppress builtin warning with disableExperimentalSEAWarning option
sea: suppress builtin warning with disableExperimentalSEAWarning option
sea: suppress builtin warning with disableExperimentalSEAWarning option
sea: suppress builtin warning with disableExperimentalSEAWarning option
sea: suppress builtin warning with disableExperimentalSEAWarning option
Drarig29 commentedon Sep 11, 2025
If I'm not mistaken we can close this issue. The PR landed in Node.js 22, 23 and 24
Use Node.js 22 as base binary
Use Node.js 22 as base binary
Use Node.js 22 as base binary
Use Node.js 22 as base binary