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

Potentially redundant dependencies in Next.js template #11882

Closed
1 task
mcmxcdev opened this issue Sep 6, 2022 · 1 comment · Fixed by #16786
Closed
1 task

Potentially redundant dependencies in Next.js template #11882

mcmxcdev opened this issue Sep 6, 2022 · 1 comment · Fixed by #16786
Assignees
Labels
outdated scope: nextjs Issues related to NextJS support for Nx type: feature

Comments

@mcmxcdev
Copy link

mcmxcdev commented Sep 6, 2022

Description

When generating a simple Next.js project with npx create-nx-workspace --preset=next, I see at least three dependencies where I don't know why they come installed out of the box:

"core-js": "^3.6.5",
"regenerator-runtime": "0.13.7",
"react-test-renderer": "18.0.0"

core-js and regenerator-runtime seem to be compatibility layers which shouldn't be necessary in a modern project.

jest tests also work without react-test-renderer.

All three of these dependencies are never references in a freshly installed project.

Motivation

Get rid of redundant dependencies

@AgentEnder AgentEnder added the scope: nextjs Issues related to NextJS support for Nx label Sep 11, 2022
@ndcunningham ndcunningham self-assigned this May 4, 2023
ndcunningham added a commit to ndcunningham/nx that referenced this issue May 4, 2023
Features from these packages should be available

closed nrwl#11882
ndcunningham added a commit to ndcunningham/nx that referenced this issue May 4, 2023
The features should be available by default

closed nrwl#11882
ndcunningham added a commit to ndcunningham/nx that referenced this issue May 5, 2023
The features should be available by default

closed nrwl#11882
ndcunningham added a commit to ndcunningham/nx that referenced this issue May 5, 2023
The features should be available by default

closed nrwl#11882
ndcunningham added a commit to ndcunningham/nx that referenced this issue May 5, 2023
The features should be available by default

closed nrwl#11882
ndcunningham added a commit to ndcunningham/nx that referenced this issue May 5, 2023
The features should be available by default

closed nrwl#11882
ndcunningham added a commit to ndcunningham/nx that referenced this issue May 5, 2023
@github-actions
Copy link

github-actions bot commented Jun 5, 2023

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: nextjs Issues related to NextJS support for Nx type: feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants