bug: Nx 15.4.x requires a project.json to work correctly

This issue has been tracked since 2022-12-29.

Please provide the environment you discovered this bug in.


Which area/package is the issue in?

Don't know / Other


Prior to Nx 15.4.x, the @nrwl/vite package could be used in as an Angular CLI builder without any additional dependencies. In 15.4 the app no longer runs and displays an error


Please provide the exception or error you saw

$ ng serve
An unhandled exception occurred: Cannot read properties of undefined (reading 'data')
See "/tmp/ng-rfo1eP/angular-errors.log" for further details.

~/projects/github-ba5rvt 5s
❯ cat /tmp/ng-rfo1eP/angular-errors.log
[error] TypeError: Cannot read properties of undefined (reading 'data')
    at readTargetOptions (file:///home/projects/github-ba5rvt/node_modules/@nrwl/devkit/src/executors/read-target-options.js:13:70)
    at getBuildTargetOptions (file:///home/projects/github-ba5rvt/node_modules/@nrwl/vite/src/utils/options-utils.js:70:42)
    at viteDevServerExecutor (file:///home/projects/github-ba5rvt/node_modules/@nrwl/vite/src/executors/dev-server/dev-server.impl.js:11:80)
    at viteDevServerExecutor.next (<anonymous>)
    at recurse (file:///home/projects/github-ba5rvt/node_modules/@nrwl/devkit/src/utils/convert-nx-executor.js:55:26)
    at eval (file:///home/projects/github-ba5rvt/node_modules/@nrwl/devkit/src/utils/convert-nx-executor.js:72:17)

Other information

Running npx nx init to setup Nx, then running ng serve works

I would be willing to submit a PR to fix this issue

  • Yes
  • No
brandonroberts wrote this answer on 2023-01-11

Fixed in Nx 15.4.3

More Details About Repo
Owner Name analogjs
Repo Name analog
Full Name analogjs/analog
Language TypeScript
Created Date 2022-07-06
Updated Date 2023-03-28
Star Count 885
Watcher Count 18
Fork Count 67
Issue Count 33


Issue Title Created Date Updated Date