-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Nest cannot be bundled using nexe #391
Comments
PR: #392 submitted |
This sounds like more of a bundler issue. If the bundler doesn't understand |
I used |
@wbhob I agree, it's a bundler issue, but it also struck me as an odd usage of @shekohex I've used |
[https://github.com/shkohexe)] Can you please share the steps of making exe with pkg. I tried as it explained in their document, i'm running into errors. Please share the steps . Thanks |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm submitting a...
Current behavior
With our project, we are using
nexe
to bundle the Nest application into an executable. This allows us to simplify our deployment process by not needing to manage different versions of node.nexe
uses thefuse-box
bundler to package the application. Unfortunately, bundlers don't always interpret the meaning ofthis
correctly, which is where the bug manifests itself. The next application can be packaged without error, but then encounters runtime errors when starting up.The error on start up appears below:
Expected behavior
The nest application should be executable once bundled.
Minimal reproduction of the problem with instructions
The steps to reproduce are as follows:
nexe
:npm install nexe@^2.0.0-rc.22
nexe
to bundle it. If the compiled entry-point to your application is./dist/index.js
then runnpx nexe ./dist/index.js
What is the motivation / use case for changing the behavior?
Remove the usage of the
this
keyword to avoid ambiguous interpretations by bundling tools (webpack, nexe, pkg, etc)Typically I would expect the packaging tool to be fixed, and indeed there is a similar issue reported for
fuse-box
. However, after upgrading to a version including the fix, the issue still persists.Environment
The text was updated successfully, but these errors were encountered: