-
Notifications
You must be signed in to change notification settings - Fork 28.4k
yarn create next-app --ts
sets wrong eslint version
#29770
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
Comments
Same just happened to me, ESLint version is As the author of this issue said, Downgrading ESLint to |
could be fixed by pinning the installed eslint version here i think - const devDependencies = ['eslint', 'eslint-config-next']
+ const devDependencies = ['eslint@7', 'eslint-config-next'] |
Same here. I created a new nextjs app using the boiler plate. Ran |
I am also encountering this issue. Downgrading the |
Adding some additional context here: The cause of the Updating the - {file: 'eslint/lib/api.js',pkg: 'eslint'},
+ {file: 'eslint',pkg: 'eslint'},
would resolve this particular error. However, the next eslint config has a rushstack dependency, so even when allowing for
See another report of this here: #29829. Rushstack does not yet support eslint I'm happy to submit a PR to pin to |
Thanks for logging this folks, and apologies for any inconvenience this may be causing. @stefanprobst and @finn-orsini are both correct, and thank you @finn-orsini for submitting a PR to fix this so quickly! Once #29837 is merged, the latest |
Fixes #29770 ## Description Pins `eslint` to `v7`. This avoids issues with `v8` from both [changes to the public api](https://eslint.org/docs/8.0.0/user-guide/migrating-to-8.0.0#the-lib-entrypoint-has-been-removed) and [lack of support from rushstack](microsoft/rushstack#2890). See #29770 (comment) for slightly more detail. Local testing showed output of next app correctly pinned to `v7`. <img width="495" alt="Screen Shot 2021-10-12 at 12 31 56 AM" src="https://user-images.githubusercontent.com/29002354/136892312-1571718c-882b-4235-98f4-c1b8d4c72d26.png"> ### Bug Checklist - [X] Related issues linked using `fixes #number` - [ ] Integration tests added - Happy to add an integration test for pinning to v7 if we'd like, will need to be updated / removed when v8 is supported. - [ ] Errors have helpful link attached, see `contributing.md` - No errors to add links for
I think if the
|
sorry nevermind saw the first post used the same version and it works fine now. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Fixes vercel#29770 ## Description Pins `eslint` to `v7`. This avoids issues with `v8` from both [changes to the public api](https://eslint.org/docs/8.0.0/user-guide/migrating-to-8.0.0#the-lib-entrypoint-has-been-removed) and [lack of support from rushstack](microsoft/rushstack#2890). See vercel#29770 (comment) for slightly more detail. Local testing showed output of next app correctly pinned to `v7`. <img width="495" alt="Screen Shot 2021-10-12 at 12 31 56 AM" src="https://user-images.githubusercontent.com/29002354/136892312-1571718c-882b-4235-98f4-c1b8d4c72d26.png"> ### Bug Checklist - [X] Related issues linked using `fixes #number` - [ ] Integration tests added - Happy to add an integration test for pinning to v7 if we'd like, will need to be updated / removed when v8 is supported. - [ ] Errors have helpful link attached, see `contributing.md` - No errors to add links for
Fixes vercel/next.js#29770 ## Description Pins `eslint` to `v7`. This avoids issues with `v8` from both [changes to the public api](https://eslint.org/docs/8.0.0/user-guide/migrating-to-8.0.0#the-lib-entrypoint-has-been-removed) and [lack of support from rushstack](microsoft/rushstack#2890). See vercel/next.js#29770 (comment) for slightly more detail. Local testing showed output of next app correctly pinned to `v7`. <img width="495" alt="Screen Shot 2021-10-12 at 12 31 56 AM" src="https://user-images.githubusercontent.com/29002354/136892312-1571718c-882b-4235-98f4-c1b8d4c72d26.png"> ### Bug Checklist - [X] Related issues linked using `fixes #number` - [ ] Integration tests added - Happy to add an integration test for pinning to v7 if we'd like, will need to be updated / removed when v8 is supported. - [ ] Errors have helpful link attached, see `contributing.md` - No errors to add links for
What example does this report relate to?
yarn create next-app --typescript
What version of Next.js are you using?
11.1.2
What version of Node.js are you using?
16.10.0
What browser are you using?
chrome 94
What operating system are you using?
Arch Linux
How are you deploying your application?
N/A
Describe the Bug
When creating a next.js project using
yarn create next-app --typescript
, eslint version of the project is set to8.0.0
inpackage.json
, howevereslint-config-next
depends on eslint^7.23.0
.When running
yarn lint
, it errors:When creating a next.js using
npx create-next-app@latest --ts
, the eslint version is set correctly.I didn't test the non-ts version.
Expected Behavior
eslint version of the project should be
^7.23.0
To Reproduce
The text was updated successfully, but these errors were encountered: