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
Used app name of nx-test-3, no dockerfile, no nx cloud
npx nx serve nx-test-3
when you serve it, this is what you see... note that webpack-clik shows node-env=production, i think it should be using tsc instead of webpack, but if it is supposed to be using webpack, it shouldn't be using production mode.
> nx run nx-test-3:serve:development
> nx run nx-test-3:build
> webpack-cli build --node-env=production
chunk (runtime: main) main.js (main) 2.71 KiB [entry] [rendered]
webpack compiled successfully (f60f6de829567d37)
———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
NX Successfully ran target build for project nx-test-3 (7s)
Debugger listening on ws://localhost:9229/b0251ed6-b476-48ed-a033-7eed915c436e
Debugger listening on ws://localhost:9229/b0251ed6-b476-48ed-a033-7eed915c436e
For help, see: https://nodejs.org/en/docs/inspector
[Nest] 86378 - 04/18/2024, 8:13:52 AM LOG [NestFactory] Starting Nest application...
[Nest] 86378 - 04/18/2024, 8:13:52 AM LOG [InstanceLoader] AppModule dependencies initialized +32ms
[Nest] 86378 - 04/18/2024, 8:13:52 AM LOG [RoutesResolver] AppController {/api}: +5ms
[Nest] 86378 - 04/18/2024, 8:13:52 AM LOG [RouterExplorer] Mapped {/api, GET} route +3ms
[Nest] 86378 - 04/18/2024, 8:13:52 AM LOG [NestApplication] Nest application successfully started +6ms
[Nest] 86378 - 04/18/2024, 8:13:52 AM LOG 🚀 Application is running on: http://localhost:3000/api
### Nx Report
```shell
> NX Its time to update Nx 🎉
Your repository uses a higher version of Nx (18.3.1) than your global CLI version (17.1.2)
For more information, see https://nx.dev/more-concepts/global-nx
NX Report complete - copy this into the issue template
Node : 18.17.1
OS : darwin-x64
npm : 9.6.7
nx (global) : 17.1.2
nx : 18.3.1
@nx/js : 18.3.1
@nx/jest : 18.3.1
@nx/linter : 18.3.1
@nx/eslint : 18.3.1
@nx/workspace : 18.3.1
@nx/devkit : 18.3.1
@nx/eslint-plugin : 18.3.1
@nx/nest : 18.3.1
@nx/node : 18.3.1
@nrwl/tao : 18.3.1
@nx/web : 18.3.1
@nx/webpack : 18.3.1
typescript : 5.4.5
---------------------------------------
Registered Plugins:
@nx/webpack/plugin
@nx/eslint/plugin
@nx/jest/plugin
Failure Logs
none
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
The text was updated successfully, but these errors were encountered:
Current Behavior
I created a brand new nx workspace with nestjs preset. When running npx nx serve nestjsapp, webpack builds it in production mode.
Expected Behavior
It should be served with sourcemaps and debugging enabled.
GitHub Repo
No response
Steps to Reproduce
Easy... just create a new workspace with the nest preset and serve it. you'll see that webpack is incorrectly serving in production mode.
when you serve it, this is what you see... note that webpack-clik shows node-env=production, i think it should be using tsc instead of webpack, but if it is supposed to be using webpack, it shouldn't be using production mode.
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
The text was updated successfully, but these errors were encountered: