ESLint warnings within Atom editor. Cannot find module 'eslint-plugin-flowtype'
See original GitHub issueI followed instructions to enable ESLint warnings within (Atom) editor. On opening a .js file in the editor I get this error.
Error: Failed to load plugin flowtype: Cannot find module 'eslint-plugin-flowtype' Referenced from: package.json
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Atom & eslint: Cannot find module 'eslint-config-react-app'
While react-scripts 's eslint doesn't raise any warning or error. By the way, the package eslint-config-react-app is installed in node_modules .
Read more >eslint/eslint - Gitter
ERROR:ESLint: 5.16.0. ESLint couldn't find the plugin "eslint-plugin-angular". This can happen for a couple different reasons: If ESLint is installed ...
Read more >Failed to load plugin 'flowtype' declared in 'package.json ...
Coding example for the question Failed to load plugin 'flowtype' declared in 'package.json » eslint-config-react-app': Cannot find module ...
Read more >'Cannot find module 'eslint-plugin-flowtype'' : WEB-44133
Creating react app as subproject breaks Webstorm linter with message: 'Cannot find module 'eslint-plugin-flowtype''. What steps will reproduce the problem?
Read more >failed to load plugin 'flowtype' declared in 'baseconfig - You.com
ERROR in Failed to load plugin 'flowtype' declared in 'package.json » eslint-config-react-app': Cannot find module 'eslint/use-at-your-own-risk' Require ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found I was hitting that issue too when using the
linter-eslint
package for atom. My work around was to first make sure that all of the required plugins were installed globally withnpm install -g eslint babel-eslint eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-flowtype
and then tellinglinter-eslint
to use the global eslint installationPlease follow these instructions for integrating linting with your editor:
https://github.com/facebookincubator/create-react-app/blob/master/template/README.md#display-lint-output-in-the-editor
It is unfortunate that we require global installation but this is a problem on ESLint’s end, and they intend to solve it: https://github.com/eslint/eslint/issues/3458.