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
> nx run api:serve
> NX Cannot read properties of undefined (reading 'name')
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Running target serve for project api failed
Failed tasks:
- api:serve
Hint: run the command with --verbose for more details.
> nx run api:serve
> NX Cannot read properties of undefined (reading 'name')
HookWebpackError: Cannot read properties of undefined (reading 'name')
at makeWebpackError (/Users/kwilk/Sources/my-project/node_modules/webpack/lib/HookWebpackError.js:48:9)
at /Users/kwilk/Sources/my-project/node_modules/webpack/lib/Compilation.js:3061:12
at eval (eval at create (/Users/kwilk/Sources/my-project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:33:1)
at fn (/Users/kwilk/Sources/my-project/node_modules/webpack/lib/Compilation.js:480:17)
at _next0 (eval at create (/Users/kwilk/Sources/my-project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:31:1)
at eval (eval at create (/Users/kwilk/Sources/my-project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:44:1)
at eval (eval at create (/Users/kwilk/Sources/my-project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
at /Users/kwilk/Sources/my-project/node_modules/webpack/lib/Compilation.js:502:10
at Hook.eval [as callAsync] (eval at create (/Users/kwilk/Sources/my-project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:7:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/kwilk/Sources/my-project/node_modules/tapable/lib/Hook.js:18:14)
-- inner error --
TypeError: Cannot read properties of undefined (reading 'name')
at findAllNpmDeps (/Users/kwilk/Sources/my-project/node_modules/nx/src/plugins/js/package-json/create-package-json.js:107:30)
at findAllNpmDeps (/Users/kwilk/Sources/my-project/node_modules/nx/src/plugins/js/package-json/create-package-json.js:130:17)
at createPackageJson (/Users/kwilk/Sources/my-project/node_modules/nx/src/plugins/js/package-json/create-package-json.js:34:5)
at /Users/kwilk/Sources/my-project/node_modules/@nrwl/webpack/src/plugins/generate-package-json-plugin.js:35:64
at fn (/Users/kwilk/Sources/my-project/node_modules/webpack/lib/Compilation.js:478:10)
at _next0 (eval at create (/Users/kwilk/Sources/my-project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:31:1)
at eval (eval at create (/Users/kwilk/Sources/my-project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:44:1)
at eval (eval at create (/Users/kwilk/Sources/my-project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
at /Users/kwilk/Sources/my-project/node_modules/webpack/lib/Compilation.js:502:10
at Hook.eval [as callAsync] (eval at create (/Users/kwilk/Sources/my-project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:7:1)
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Running target serve for project api failed
Failed tasks:
- api:serve
Hint: run the command with --verbose for more details.
Additional Information
Upgraded from Nx 15.6.3 -> 15.9.2 when the issue happened
The text was updated successfully, but these errors were encountered:
Figure this out after some more debugging, it was because I had a import for a package that I had uninstalled in my code. Pretty obscure error that was tricky to track down. A better error message for this would be very helpful
Current Behavior
Expected Behavior
serve
runs normallyGitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Additional Information
Upgraded from Nx 15.6.3 -> 15.9.2 when the issue happened
The text was updated successfully, but these errors were encountered: