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
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).
Hey,
So, I have this issue, where i see this warning message, which doesn't affect my application logic:
Looking at the test bellow, shows that the expected behavior is for this message to only be shown if the
disableExperimentalSEAWarning
flag is not set totrue
https://github.com/nodejs/node/blob/66c807693e6a92ff6429d3890d3fb96ece99b623/test/fixtures/sea.js#L15
But, when looking at the source code, this doesn't seem to be the case, there's no checks for this flag to ignore showing the message if it's set or not.
https://github.com/nodejs/node/blob/66c807693e6a92ff6429d3890d3fb96ece99b623/lib/internal/main/embedding.js#L101
Please let me know if I'm missing something, and how to avoid logging this warning message? Thanks
The text was updated successfully, but these errors were encountered: