nrwl/nx

NX 19: NX Cannot read properties of undefined (reading 'split')

Jesse1989pp opened this issue · 0 comments

Current Behavior

When i bump my NX version from 18 to 19 i get issues in my pipelines.
This is not happening locally (at least not consistently)

It seems to run into an issue when the runCreateNodesInParallel hits, whether via a nx run-many or nx show projects.

The error:

TypeError: Cannot read properties of undefined (reading 'split')
    at new CreateNodesError (PROJECT/node_modules/nx/src/project-graph/error-types.js:136:56)
    at PROJECTm/node_modules/nx/src/project-graph/plugins/utils.js:59:25
    at async Promise.all (index 0)
    at runCreateNodesInParallel (PROJECT/node_modules/nx/src/project-graph/plugins/utils.js:66:5)
    at async Promise.all (index 1)
    at buildProjectGraphAndSourceMapsWithoutDaemon (PROJECT/node_modules/nx/src/project-graph/project-graph.js:77:31)
    at createProjectGraphAndSourceMapsAsync (PROJECT/node_modules/nx/src/project-graph/project-graph.js:202:25)
    at createProjectGraphAsync (PROJECT/node_modules/nx/src/project-graph/project-graph.js:[19]
    at Object.runMany (PROJECT/node_modules/nx/src/command-line/run-many/run-many.js:29:26)

Expected Behavior

No issues, we're not using NX ENV variables. Migration should be not breaking as i understand

GitHub Repo

No response

Steps to Reproduce

As i am struggling understanding the issue i am not able to have a concentrated reproduction yet.

  1. Starting with a working Nuxt application
  2. nx migrate latest
  3. Push to CI and the errors show up in my workflows.

node: v20.13.1
npm: 10.5.2
yarn: 1.22.22

Nx Report

Node   : 20.13.1
OS     : darwin-arm64
yarn   : 1.22.22

nx (global)        : 19.0.4
nx                 : 19.0.4
@nx/js             : 19.0.4
@nx/linter         : 19.0.4
@nx/eslint         : 19.0.4
@nx/workspace      : 19.0.4
@nx/cypress        : 19.0.4
@nx/devkit         : 19.0.4
@nx/eslint-plugin  : 19.0.4
@nrwl/tao          : 19.0.4
@nx/vite           : 19.0.4
typescript         : 5.4.5
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
---------------------------------------
Community plugins:
nx-stylelint : 17.1.4

Failure Logs

at new CreateNodesError (PROJECT/node_modules/nx/src/project-graph/error-types.js:136:56)
    at PROJECTm/node_modules/nx/src/project-graph/plugins/utils.js:59:25
    at async Promise.all (index 0)
    at runCreateNodesInParallel (PROJECT/node_modules/nx/src/project-graph/plugins/utils.js:66:5)
    at async Promise.all (index 1)
    at buildProjectGraphAndSourceMapsWithoutDaemon (PROJECT/node_modules/nx/src/project-graph/project-graph.js:77:31)
    at createProjectGraphAndSourceMapsAsync (PROJECT/node_modules/nx/src/project-graph/project-graph.js:202:25)
    at createProjectGraphAsync (PROJECT/frontend-platform/node_modules/nx/src/project-graph/project-graph.js:[19](https://github.com/jumbo-supermarkten/frontend-platform/actions/runs/9110336331/job/25045213216?pr=2356#step:7:20)1:39)
    at Object.runMany (PROJECT/node_modules/nx/src/command-line/run-many/run-many.js:29:26)

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response