eslint-loader

Failed to load plugin @typescript-eslint: Cannot find module 'eslint-plugin-@typescript-eslint'

回眸只為那壹抹淺笑 提交于 2020-01-02 00:13:17
问题 I am reconfiguring my project from tslint to eslint. I can run eslint manually, but webpack fails to run with this error message: Module build failed (from /path/node_modules/eslint-loader/index.js): Error: Failed to load plugin @typescript-eslint: Cannot find module 'eslint-plugin-@typescript-eslint' I have ruled out bad .eslintrc.js and missing dependencies since it works when I run it manually ./node_modules/eslint/bin/eslint.js ./ --ext .ts,.tsx --config ./.eslintrc.js I'm not sure if

Failed to load plugin @typescript-eslint: Cannot find module 'eslint-plugin-@typescript-eslint'

耗尽温柔 提交于 2019-12-04 22:40:22
I am reconfiguring my project from tslint to eslint. I can run eslint manually, but webpack fails to run with this error message: Module build failed (from /path/node_modules/eslint-loader/index.js): Error: Failed to load plugin @typescript-eslint: Cannot find module 'eslint-plugin-@typescript-eslint' I have ruled out bad .eslintrc.js and missing dependencies since it works when I run it manually ./node_modules/eslint/bin/eslint.js ./ --ext .ts,.tsx --config ./.eslintrc.js I'm not sure if this is an upstream issue with eslint-loader. module.exports = { parser: "@typescript-eslint/parser",