-
Notifications
You must be signed in to change notification settings - Fork 2
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
upgrading from RN 0.72.9 to 0.73.2(or 0.73.5) tsconfig path errors #258
Comments
I have same issues. {
"extends": "@react-native/typescript-config/tsconfig.json",
"compilerOptions": {
"baseUrl": "./src/",
"paths": {
"app-assets/*": ["assets/*"],
"app-components/*": ["components/*"],
"app-core/*": ["core/*"],
"app-forms/*": ["forms/*"],
"app-screens/*": ["screens/*"],
"app-*": ["*"]
}
}
} It's work fine with [email protected] |
happens too when upgrading to 0.73.5 |
added reproducible steps. |
issue fixed with solution in react-native repo. closing this one too. |
Still same in RN 0.73.6 @Crare . What is your config? |
@luutruong I added workspaces to my package.json:
then include in eact folder a corresponding package.json:
you can remote the paths and baseUrl from tsconfig. |
It works now but it need run |
Still struggling to configure typescript. this is my tsconfig.json part abouth paths
I created package.json files in each folder inside src folder like this one:
I also added workspaces in my package.json like this :
I ran yarn in my project root as @luutruong suggested but nothing changed. |
Environment
Things I’ve done to figure out my issue
Upgrading version
from RN 0.72.9 to 0.73.2
Description
Error:
Error in tsconfig probably due to changes in "extends" value there.
extends used to be
"extends": "@tsconfig/react-native/tsconfig.json",
tsconfig:
components-folder and other such are in the root. not under src-folder or such.
Reproducible demo
either use the steps below or clone https://github.com/Crare/rn0.73.x_tsxonfig_paths_issue
The text was updated successfully, but these errors were encountered: