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

Should I provide tsconfig.json at the root path? #29533

Open
1 of 4 tasks
kajweb opened this issue Jan 7, 2025 · 0 comments
Open
1 of 4 tasks

Should I provide tsconfig.json at the root path? #29533

kajweb opened this issue Jan 7, 2025 · 0 comments

Comments

@kajweb
Copy link

kajweb commented Jan 7, 2025

Current Behavior

I'm just starting to learn about monorepo and nx, and I'm curious if I need to put tsconfig.json in the root directory?
Currently I put it in each subproject, but this causes me to get errors when executing nx commands.

#20574

Expected Behavior

Image

GitHub Repo

No response

Steps to Reproduce

nx g @nx/react:application apps/react

Nx Report

NX   Unable to resolve @nx/react:application.

unable to find tsconfig.base.json or tsconfig.json
Pass --verbose to see the stacktrace.

Failure Logs

Package Manager Version

No response

Operating System

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

Additional Information

No response

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

No branches or pull requests

1 participant