-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(react): remove hard-coded typings inside tsconfig and add them to the app #18478
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
34fb761
to
4055e8b
Compare
packages/react/src/generators/library/files/common/tsconfig.lib.json__tmpl__
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There is one broken nextjs test that needs to be fixed and I left one comment.
4055e8b
to
621e1be
Compare
621e1be
to
967c359
Compare
967c359
to
fa1cbeb
Compare
fa1cbeb
to
0459dd2
Compare
0459dd2
to
5403355
Compare
Closing in favor of: #18501 |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
When you create a react app inside
tsconfig.app.json
andtsconfig.spec.json
there are hardcoded references to typings insidenode_modules
.If you use Yarn PnP these hardcoded references would fail since
node_modules
do not exist.Expected Behavior
This PR removes the references from
tsconfig
and adds them directly to the app.That way there would be no need to have hardcoded references and they would be automatically picked up during bundling without the need to anything additional.
Related Issue(s)
Fixes #