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

fix(react): remove hard-coded typings inside tsconfig and add them to the app #18478

Closed

Conversation

ndcunningham
Copy link
Contributor

Current Behavior

When you create a react app inside tsconfig.app.json and tsconfig.spec.json there are hardcoded references to typings inside node_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 #

@ndcunningham ndcunningham added the scope: react Issues related to React support for Nx label Aug 3, 2023
@ndcunningham ndcunningham requested a review from a team as a code owner August 3, 2023 23:33
@ndcunningham ndcunningham self-assigned this Aug 3, 2023
@vercel
Copy link

vercel bot commented Aug 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2023 7:16pm

Copy link
Contributor

@meeroslav meeroslav left a 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.

@ndcunningham
Copy link
Contributor Author

Closing in favor of: #18501

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: react Issues related to React support for Nx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants