Closed mikepziegler closed 1 year ago
Added additional information
Hey @mikepziegler , Some of your @nrwl/* packages don't line up with the version of nx
you have installed. Aside from @nrwl/nx-cloud
, all packages under the nrwl scope should generally be set up with the same version.
Can you correct this and check that the issue still reproduces? An easy way to fix this would be to run nx migrate {v}
, where v
is the version of nx you have installed. Alternatively, updating to latest with nx migrate latest
would also work.
I'm running into similar issue with the following report
Node : 18.14.2
OS : darwin arm64
yarn : 1.22.19
nx : 15.7.2
@nrwl/jest : 15.7.2
@nrwl/linter : 15.7.2
@nrwl/workspace : 15.7.2
@nrwl/angular : 15.7.2
@nrwl/cli : 15.7.2
@nrwl/cypress : 15.7.2
@nrwl/devkit : 15.7.2
@nrwl/eslint-plugin-nx : 15.7.2
@nrwl/js : 15.7.2
@nrwl/nest : 15.7.2
@nrwl/node : 15.7.2
@nrwl/tao : 15.7.2
@nrwl/webpack : 15.7.2
@nrwl/nx-cloud : 15.1.0
typescript : 4.8.4
---------------------------------------
Community plugins:
@auth0/auth0-angular : 1.10.1
ng2-charts : 3.0.9
@sharethrough/nx-deploy : 2.3.1
NestJS apps failing to run after upgrading to 15.7 with the following error:
> NX Cannot read properties of undefined (reading 'data')
HookWebpackError: Cannot read properties of undefined (reading 'data')
at makeWebpackError (/Users/maphe/Workspace/publisher-platform/node_modules/@nrwl/webpack/node_modules/webpack/lib/HookWebpackError.js:48:9)
at /Users/maphe/Workspace/publisher-platform/node_modules/@nrwl/webpack/node_modules/webpack/lib/Compilation.js:3060:12
at eval (eval at create (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:31:1)
at fn (/Users/maphe/Workspace/publisher-platform/node_modules/@nrwl/webpack/node_modules/webpack/lib/Compilation.js:480:17)
at _next0 (eval at create (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:28:1)
at eval (eval at create (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:45:1)
at eval (eval at create (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
at /Users/maphe/Workspace/publisher-platform/node_modules/@nrwl/webpack/node_modules/webpack/lib/Compilation.js:502:10
at Hook.eval [as callAsync] (eval at create (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:7:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/Hook.js:18:14)
I'm running into similar issue with the following report
Node : 18.14.2 OS : darwin arm64 yarn : 1.22.19 nx : 15.7.2 @nrwl/jest : 15.7.2 @nrwl/linter : 15.7.2 @nrwl/workspace : 15.7.2 @nrwl/angular : 15.7.2 @nrwl/cli : 15.7.2 @nrwl/cypress : 15.7.2 @nrwl/devkit : 15.7.2 @nrwl/eslint-plugin-nx : 15.7.2 @nrwl/js : 15.7.2 @nrwl/nest : 15.7.2 @nrwl/node : 15.7.2 @nrwl/tao : 15.7.2 @nrwl/webpack : 15.7.2 @nrwl/nx-cloud : 15.1.0 typescript : 4.8.4 --------------------------------------- Community plugins: @auth0/auth0-angular : 1.10.1 ng2-charts : 3.0.9 @sharethrough/nx-deploy : 2.3.1
NestJS apps failing to run after upgrading to 15.7 with the following error:
> NX Cannot read properties of undefined (reading 'data') HookWebpackError: Cannot read properties of undefined (reading 'data') at makeWebpackError (/Users/maphe/Workspace/publisher-platform/node_modules/@nrwl/webpack/node_modules/webpack/lib/HookWebpackError.js:48:9) at /Users/maphe/Workspace/publisher-platform/node_modules/@nrwl/webpack/node_modules/webpack/lib/Compilation.js:3060:12 at eval (eval at create (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:31:1) at fn (/Users/maphe/Workspace/publisher-platform/node_modules/@nrwl/webpack/node_modules/webpack/lib/Compilation.js:480:17) at _next0 (eval at create (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:28:1) at eval (eval at create (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:45:1) at eval (eval at create (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1) at /Users/maphe/Workspace/publisher-platform/node_modules/@nrwl/webpack/node_modules/webpack/lib/Compilation.js:502:10 at Hook.eval [as callAsync] (eval at create (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:7:1) at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/maphe/Workspace/publisher-platform/node_modules/tapable/lib/Hook.js:18:14)
This is a different issue, note the stack trace is completely different. Please open a new issue, so it can be triaged separately
Please open a new issue, so it can be triaged separately
Done: #15246
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
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 created a new nestjs app named
backend
without any other library.When running
nx serve backend
in terminal, the following output will come:Expected Behavior
Nestjs should be running after serve
GitHub Repo
No response
Steps to Reproduce
npx create-nx-workspace
Integrated monorepo
angular
ui
Documentation from https://nx.dev/packages/nest
npm install -D @nrwl/nest
nx g @nrwl/nest:app backend
backend
withnx serve backend --verbose
Nx Report
Failure Logs
Additional Information
On Version
15.6.3
, running the nestjs app works