-
Hi all, I've been playing arounf with this and firslty I just wanted to say congratulations - this is a huge step for NodeJs. However, I'm struggling to get any files to import. I've successfully managed to build an SEA using just a single file. But I'm unables to either: I have read the docs & tried to include the following code, without success:
Any help is super appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Source: https://nodejs.org/api/single-executable-applications.html It's expected it won't work, you'd need to bundle all your code and don't rely on external JS modules. |
Beta Was this translation helpful? Give feedback.
-
Is there any way to currently get around this ? |
Beta Was this translation helpful? Give feedback.
-
I bundled the majority of my dependencies with esbuild, but I am depending on the canvas module, which doesn't seem to be able to be bundled, because of the canvas.node and DLL/SO files that it downloads. Are there any plans to allow for some means to rely on external JS modules? |
Beta Was this translation helpful? Give feedback.
Source: https://nodejs.org/api/single-executable-applications.html
It's expected it won't work, you'd need to bundle all your code and don't rely on external JS modules.