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(nextjs): update default eslint-config-next to match Next.js 15 #30258

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tuffz
Copy link
Contributor

@tuffz tuffz commented Mar 4, 2025

The create-nx-workspace command with the Next.js preset currently installs next@15 but incorrectly adds eslint-config-next@14, leading to potential ESLint compatibility issues.

This fix ensures that eslint-config-next@15 is installed when using Next.js 15.

Current Behavior

Expected Behavior

GitHub Repo

https://github.com/tuffz/new-nx-with-preset-nextjs

Steps to Reproduce

  1. Run the following command from the official documentation:
    sh npx create-nx-workspace@latest --preset=next
  2. Open package.json and check the installed dependencies

Related Issue(s)

Fixes #30257

@tuffz tuffz requested a review from a team as a code owner March 4, 2025 13:18
@tuffz tuffz requested a review from jaysoo March 4, 2025 13:18
Copy link

vercel bot commented Mar 4, 2025

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Mar 4, 2025 3:36pm

Copy link

nx-cloud bot commented Mar 4, 2025

View your CI Pipeline Execution ↗ for commit 24c7c63.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 28m 2s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 14s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base=c698b... ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded 2m 12s View ↗

☁️ Nx Cloud last updated this comment at 2025-03-04 16:05:14 UTC

@tuffz tuffz changed the title fix(nextjs): ensure eslint-config-next matches Next.js version fix(nextjs): update default eslint-config-next to match Next.js 15 Mar 4, 2025
The `create-nx-workspace` command with the Next.js preset currently installs `next@15` but
incorrectly adds `eslint-config-next@14`, leading to potential ESLint compatibility issues.

This fix ensures that `eslint-config-next@15` is installed when using Next.js 15.
@tuffz tuffz force-pushed the GH-30257-fix-next-eslint-config-mismatch branch from e91cda2 to 24c7c63 Compare March 4, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eslint-config-next version mismatch in Nx Workspace setup with NextJS preset
1 participant