-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
NX Ran target undefined for project #14158
Comments
I have noticed this bug too when upgrading to 15.4.4 |
Faced with the same bug. Here is my error when I put '--verbose': > NX undefined is not iterable (cannot read property Symbol(Symbol.iterator))
HookWebpackError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at makeWebpackError (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/webpack@5.75.0/node_modules/webpack/lib/HookWebpackError.js:48:9)
at /Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/webpack@5.75.0/node_modules/webpack/lib/Compilation.js:3060:12
at eval (eval at create (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:23:1)
at fn (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/webpack@5.75.0/node_modules/webpack/lib/Compilation.js:480:17)
at _next0 (eval at create (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:21:1)
at eval (eval at create (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:34:1)
at eval (eval at create (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
at /Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/webpack@5.75.0/node_modules/webpack/lib/Compilation.js:502:10
at Hook.eval [as callAsync] (eval at create (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:7:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js:18:14)
-- inner error --
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at /Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/nx@15.4.5/node_modules/nx/src/lock-file/pnpm.js:228:31
at Array.forEach (<anonymous>)
at pruneDependencies (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/nx@15.4.5/node_modules/nx/src/lock-file/pnpm.js:225:184)
at prunePnpmLockFile (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/nx@15.4.5/node_modules/nx/src/lock-file/pnpm.js:213:26)
at createLockFile (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/nx@15.4.5/node_modules/nx/src/lock-file/lock-file.js:152:57)
at /Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/@nrwl+webpack@15.4.5_eogilhn2m7vphbmr725wv6a7ry/node_modules/@nrwl/webpack/src/utils/generate-package-json-webpack-plugin.js:42:135
at fn (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/webpack@5.75.0/node_modules/webpack/lib/Compilation.js:478:10)
at _next0 (eval at create (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:21:1)
at eval (eval at create (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:34:1)
at eval (eval at create (/Users/bugra.uluyurt/Documents/sites/personal/highhammer/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1) |
I'm experiencing a similar issue when building a lib with the |
@bugrauluyurt & @ms-tng , it sounds like your alls issues are likely caused by out of sync versions. Can you run |
Here is my report. Linting did not show any output. Packages marked as 'Not Found' are expected. I don't need them. Or does Nx needs some of them somehow? Thanks for helping out. > NX Report complete - copy this into the issue template
Node : 18.13.0
OS : darwin x64
pnpm : 7.22.0
nx : 15.4.5
@nrwl/angular : Not Found
@nrwl/cypress : 15.4.5
@nrwl/detox : Not Found
@nrwl/devkit : 15.4.5
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : 15.4.5
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.4.5
@nrwl/js : 15.4.5
@nrwl/linter : 15.4.5
@nrwl/nest : 15.4.5
@nrwl/next : Not Found
@nrwl/node : 15.4.5
@nrwl/nx-cloud : 15.0.2
@nrwl/nx-plugin : Not Found
@nrwl/react : 15.4.5
@nrwl/react-native : Not Found
@nrwl/rollup : 15.4.5
@nrwl/schematics : Not Found
@nrwl/storybook : Not Found
@nrwl/web : 15.4.5
@nrwl/webpack : 15.4.5
@nrwl/workspace : 15.4.5
@nrwl/vite : 15.4.5
typescript : 4.8.4
---------------------------------------
Local workspace plugins:
---------------------------------------
Community plugins: |
Those versions look fine @bugrauluyurt. In any case, this issue is just for the showing of "undefined" as the target name, not anything that is actually causing failed commands. You should open a new issue that contains repro steps and more info as to what commands you are running. |
@AgentEnder Thanks for the hint! |
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
From a new repo, if there are any failing tests in a Jest test suite, Nx outputs an error as in the title:
Expected Behavior
I would expect Nx to pick up the target correctly, i.e.
Github Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: