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
Hi guys !
Lately, in the 0.71 Release, React Native introduced type checking with typescript.
This causes an issue with Nx because a typescript monorepo with nx is based on references.
So basically, if you run a tsc command on an app in a generated nx monorepo (following the react native tutorial), then create some lib and import it into an app, you'll get a lot of import errors.
Example:
error TS6307: File 'Path/to/some/lib/....ts' is not listed within the file list of project 'Path/to/some/app/tsconfig.app.json'. Projects must list all files or use an 'include' pattern.
The file is in the program because:
Imported via './lib/libName' from file 'path/to/some/lib/src/index.ts'
Imported via './lib/libName' from file 'path/to/some/lib/src/index.ts'
Expected Behavior
A new project shouldn't produce typechecking errors.
Current Behavior
Hi guys !
Lately, in the 0.71 Release, React Native introduced type checking with typescript.
This causes an issue with Nx because a typescript monorepo with nx is based on references.
So basically, if you run a tsc command on an app in a generated nx monorepo (following the react native tutorial), then create some lib and import it into an app, you'll get a lot of import errors.
Example:
Expected Behavior
A new project shouldn't produce typechecking errors.
GitHub Repo
No response
Steps to Reproduce
pnpm tsc -p ./path/to/app/tsconfig.app.json
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: