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
I created a new Nx monorepo and attempted to generate a new Node.js project using the following command: ng g @nx/node:application apps/api --js
However, the command failed with the following error message:
json.exclude is not iterable
Expected Behavior
The command should successfully generate a Node.js application using JavaScript without errors, creating the expected project structure and configurations.
GitHub Repo
No response
Steps to Reproduce
Steps to Reproduce
Create a new Nx monorepo:
npx create-nx-workspace@latest project
Navigate to the project directory:
cd project
Generate a new Node.js application with JavaScript:
TypeError: json.exclude is not iterable
at /home/serhii/projects/salutem/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js:31:25
at updateJson (/home/serhii/projects/salutem/node_modules/nx/src/generators/utils/json.js:46:26)
at updateTsConfigsToJs (/home/serhii/projects/salutem/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js:28:41)
at applicationGeneratorInternal (/home/serhii/projects/salutem/node_modules/@nx/node/src/generators/application/application.js:420:42)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /home/serhii/projects/salutem/node_modules/nx/src/command-line/generate/generate.js:240:26
at async handleErrors (/home/serhii/projects/salutem/node_modules/nx/src/utils/handle-errors.js:8:24)
at async Object.handler (/home/serhii/projects/salutem/node_modules/nx/src/command-line/generate/command-object.js:13:22)
Package Manager Version
10.8.2
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
WSL version: 2.4.11.0.
OS: Ubuntu 22.04.5 LTS
The text was updated successfully, but these errors were encountered:
…ns when updating tsconfig to support js (#30073)
## Current Behavior
The `updateTsConfigsToJs` helper from `@nx/devkit` doesn't handle
tsconfig files without the `include` or `exclude` properties.
## Expected Behavior
The `updateTsConfigsToJs` helper from `@nx/devkit` should handle
tsconfig files without the `include` or `exclude` properties.
## Related Issue(s)
Fixes#30067
Current Behavior
I created a new Nx monorepo and attempted to generate a new Node.js project using the following command:
ng g @nx/node:application apps/api --js
However, the command failed with the following error message:
Expected Behavior
The command should successfully generate a Node.js application using JavaScript without errors, creating the expected project structure and configurations.
GitHub Repo
No response
Steps to Reproduce
Steps to Reproduce
cd project
Nx Report
Failure Logs
Package Manager Version
10.8.2
Operating System
Additional Information
WSL version: 2.4.11.0.
OS: Ubuntu 22.04.5 LTS
The text was updated successfully, but these errors were encountered: