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

Gatsby fails running when updating to new eslint 6.0.1 #15350

Closed
arturhenryy opened this issue Jul 3, 2019 · 11 comments
Closed

Gatsby fails running when updating to new eslint 6.0.1 #15350

arturhenryy opened this issue Jul 3, 2019 · 11 comments
Labels
breaking change If implemented, this proposed work would break functionality for older versions of Gatsby type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change
Milestone

Comments

@arturhenryy
Copy link

Description

After updating my dependencies to the latest versions gatsby fails running and i get the following error message during startup.

Module build failed (from ./node_modules/eslint-loader/index.js):
Error: Cannot find module 'eslint/lib/formatters/stylish'
Require stack:
- ...../node_modules/eslint-loader/index.js
- ...../node_modules/loader-runner/lib/loadLoader.js
- ...../node_modules/loader-runner/lib/LoaderRunner.js
- ...../node_modules/gatsby/node_modules/webpack/lib/Norma
lModule.js
- ...../node_modules/gatsby/node_modules/webpack/lib/Norma
lModuleFactory.js
- ...../node_modules/gatsby/node_modules/webpack/lib/Compi
ler.js
- ...../node_modules/gatsby/node_modules/webpack/lib/webpa
ck.js
- ...../node_modules/gatsby/dist/commands/develop.js
- ...../node_modules/gatsby-cli/lib/create-cli.js
- ...../node_modules/gatsby-cli/lib/index.js
- ...../node_modules/gatsby/dist/bin/gatsby.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:625:15)

Steps to reproduce

  • update eslint dependencies to the latest versions.
  • run yarn dev

Environment

System:
OS: macOS High Sierra 10.13.2
CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Shell: 5.3 - /bin/zsh
Binaries:
Node: 12.5.0 - /usr/local/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Browsers:
Chrome: 75.0.3770.100
Firefox: 66.0.5
Safari: 11.0.2
npmPackages:
gatsby: ^2.12.0 => 2.13.1
gatsby-image: ^2.2.3 => 2.2.4
gatsby-link: ^2.2.0 => 2.2.0
gatsby-plugin-catch-links: ^2.1.0 => 2.1.0
gatsby-plugin-eslint: ^2.0.5 => 2.0.5
gatsby-plugin-feed: ^2.3.1 => 2.3.1
gatsby-plugin-google-analytics: ^2.1.1 => 2.1.1
gatsby-plugin-manifest: ^2.2.0 => 2.2.1
gatsby-plugin-netlify: ^2.1.0 => 2.1.0
gatsby-plugin-nprogress: ^2.1.0 => 2.1.0
gatsby-plugin-offline: ^2.2.0 => 2.2.0
gatsby-plugin-page-transitions: ^1.0.8 => 1.0.8
gatsby-plugin-react-helmet: ^3.1.0 => 3.1.0
gatsby-plugin-root-import: ^2.0.5 => 2.0.5
gatsby-plugin-sass: ^2.1.0 => 2.1.0
gatsby-plugin-sharp: ^2.2.1 => 2.2.2
gatsby-plugin-sitemap: ^2.2.1 => 2.2.1
gatsby-plugin-svgr: ^2.0.2 => 2.0.2
gatsby-plugin-twitter: ^2.1.0 => 2.1.0
gatsby-plugin-web-font-loader: ^1.0.4 => 1.0.4
gatsby-source-filesystem: ^2.1.1 => 2.1.2
gatsby-source-wordpress: ^3.1.2 => 3.1.3
gatsby-transformer-sharp: ^2.2.0 => 2.2.1
npmGlobalPackages:
gatsby-cli: 2.4.7

@arturhenryy
Copy link
Author

it looks like this is the same issue
vuejs/eslint-plugin-vue#916 (comment)

@m-allanson
Copy link
Contributor

It looks like there's a fix to make eslint-loader support eslint 6. Once that fix is released we should be able to update the versions here .

@m-allanson m-allanson added help wanted Issue with a clear description that the community can help with. status: blocked This issue/PR can't be solved at the moment and shouldn't be closed/merged type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change labels Jul 3, 2019
@moonmeister
Copy link
Contributor

eslint-loader is fine, I think we're now waiting on facebook/create-react-app#7268

@gatsbot
Copy link

gatsbot bot commented Aug 1, 2019

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.

If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

@gatsbot gatsbot bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Aug 1, 2019
@michaellopez
Copy link
Contributor

not stale - still waiting on facebook/create-react-app#7268 which is fixed by facebook/create-react-app#7415 so waiting on a release which should "be out in the next week"...

@moonmeister moonmeister added Epic not stale and removed stale? Issue that may be closed soon due to the original author not responding any more. Epic labels Aug 2, 2019
@wardpeet wardpeet removed the status: blocked This issue/PR can't be solved at the moment and shouldn't be closed/merged label Aug 2, 2019
@wardpeet
Copy link
Contributor

wardpeet commented Aug 2, 2019

facebook/create-react-app#7415 has been merged so we can carry on.

#16168 will take care of it

@michaellopez
Copy link
Contributor

@wardpeet #16168 Actually did not fix support for ESLint 6. It has a commit specifically for not using 6.

Looking at the history of eslint-config-react-app support for ESLint 6 was added in eslint-config-react-app@5.0.0. Are there any plans on moving to that? Should I send a PR? If so, any hints on what I should look out for during upgrade?

@wardpeet wardpeet added breaking change If implemented, this proposed work would break functionality for older versions of Gatsby and removed help wanted Issue with a clear description that the community can help with. labels Sep 2, 2019
@wardpeet
Copy link
Contributor

wardpeet commented Sep 2, 2019

Sadly we'll have to mark this as a breaking change and we won't be able to fix this in gatsby v2. Eslint 6 needs support for Node.js 8.10.0. We officially support node 8.0.0 so moving to eslint 6 will break.

You could setup yarn resolutions to fix this problem.

I'm going to close this as there is nothing we can do for it atm.

@wardpeet wardpeet closed this as completed Sep 2, 2019
@michaellopez
Copy link
Contributor

@wardpeet Ok, thanks for the update. Is there another issue tracking/target this for gatsby v3? Or should I submit a new one?

@wardpeet wardpeet added this to the Next Major milestone Sep 2, 2019
@wardpeet
Copy link
Contributor

wardpeet commented Sep 2, 2019

I've added it to the thread #15277 (comment)

@michaellopez
Copy link
Contributor

Great, thanks @wardpeet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change If implemented, this proposed work would break functionality for older versions of Gatsby type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change
Projects
None yet
Development

No branches or pull requests

6 participants