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

Failed to load plugin 'flowtype' declared in 'BaseConfig starting dev server #7282

Closed
chris48s opened this issue Nov 18, 2021 · 3 comments · Fixed by #7304
Closed

Failed to load plugin 'flowtype' declared in 'BaseConfig starting dev server #7282

chris48s opened this issue Nov 18, 2021 · 3 comments · Fixed by #7304
Labels
bug Bugs in badges and the frontend frontend The React app and the infrastructure that supports it

Comments

@chris48s
Copy link
Member

To reproduce: npm start

Failed to load plugin 'flowtype' declared in 'BaseConfig »
shields/node_modules/gatsby/node_modules/eslint-config-react-app/index.js': Package subpath
'./lib/rules/no-unused-expressions' is not defined by "exports" in shields/node_modules/eslint/package.json
failed Building development bundle - 6.365s
ERROR in Failed to load plugin 'flowtype' declared in 'BaseConfig » 

This isn't preventing us deploying - production frontend build still works. It is just gatsby develop that throws. I think this was introduced in #7235 as downgrading to ESLint 7 with npm install --save eslint@7.32.0 fixes the issue. I haven't figured out if there's a way we can fix it and keep ESLint 8, or why Gatsby needs a linter to start the dev server.

@chris48s chris48s added frontend The React app and the infrastructure that supports it bug Bugs in badges and the frontend labels Nov 18, 2021
@calebcartwright
Copy link
Member

I think I have some (vague) memories of gnarly peer dependency issues between eslint and gatsby+friends

@calebcartwright
Copy link
Member

Do you think we should hold off on updating more dependencies for the time being? Not sure what my own thinking is on that question tbh, but wanted to ask since I imagine that the more we update the other dependencies the more difficult this may be to unwind

@chris48s
Copy link
Member Author

chris48s commented Nov 19, 2021

I agree. I've submitted #7304 - lets merge that before we process this week's dependency bumps.

Didn't really have time for it last night but I spent a bit of time on it this evening. I was hoping updating the latest gatsby release might fix us but we need to wait for gatsbyjs/gatsby#33785 to get sorted upstream. Then we can hopefully re-revert to eslint 8

schabibi1 referenced this issue in storyblok/gatsby-source-storyblok Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs in badges and the frontend frontend The React app and the infrastructure that supports it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants