Skip to content
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

Error with nx g @ng-rsbuild/nx:application myapp and no tsconfig.json #4

Open
scottfwalter opened this issue Mar 6, 2025 · 2 comments

Comments

@scottfwalter
Copy link

Using nx 20.4.6 I am following the directions here: https://angular-rspack.dev/getting-started/quick-start

npx create-nx-workspace@latest myorg --preset apps
cd myorg
npx nx add @nx/rsbuild
npm install @ng-rsbuild/plugin-nx
npx nx g @ng-rsbuild/nx:application myapp

When I get to the last step: npx nx g @ng-rsbuild/nx:application myapp I get this error:

 NX   Unable to resolve @ng-rsbuild/nx:application.

unable to find tsconfig.base.json or tsconfig.json
Error: Unable to resolve @ng-rsbuild/nx:application.
unable to find tsconfig.base.json or tsconfig.json
    at getGeneratorInformation (/Users/scott/tmp/myorg2/node_modules/nx/src/command-line/generate/generator-utils.js:40:15)
    at /Users/scott/tmp/myorg2/node_modules/nx/src/command-line/generate/generate.js:216:248
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async handleErrors (/Users/scott/tmp/myorg2/node_modules/nx/src/utils/handle-errors.js:8:24)
    at async Object.handler (/Users/scott/tmp/myorg2/node_modules/nx/src/command-line/generate/command-object.js:13:22)

I don't see any tsconfig.json or tsconfig.base.json in any directory other than node_modules.

@stepjacky
Copy link

stepjacky commented Mar 9, 2025

you can change
npx nx g @ng-rsbuild/nx:application myapp
to
npx nx g @ng-rsbuild/plugin-nx:application myapp
for correct work!

@scottfwalter
Copy link
Author

@stepjacky thanks! for the help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants