-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Broken Nest.js app when migrating from 13.2.x
to 13.4.x
#8446
Comments
@nrwl/js
executor13.2.x
to 13.4.x
I had a 13.3.x update break a build a well. I was able to fix it by setting "optimizations" to false for the NestJS production build configuration. |
disabled optimization in prod builds as this uses minification, which causes class names to change. NestJS heavilty utilizes reflection for many features which break when this change occurs. see nrwl/nx#8446 closes #4061 closes #4036
disabled optimization in prod builds as this uses minification, which causes class names to change. NestJS heavilty utilizes reflection for many features which break when this change occurs. see nrwl/nx#8446 closes #4061 closes #4036
I also run into that problem. Even the module names in the bootstrap log were minified: [Nest] 4 LOG [InstanceLoader] _ dependencies initialized +13ms |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I have a broken Nest.js app in production but working in development, the error:
Everything is minified that I cant see the name of the modules, and to get it working I traced back to a commit with
nx migrate latest
and the diff is:Without these changes, class names are not minified and the production build works fine.
Expected Behavior
For the Nest.js app to work as it did prior to upgrading and adding
@nrwl/js
executor.Steps to Reproduce
I honestly do not know where the problem is but I suspect it is from the production build process in
13.4.x
, because when I downgrade back to13.2.x
classes are not minified and the error is totally gone.Failure Logs
Provided above.
Environment
The text was updated successfully, but these errors were encountered: