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

将@umijs/fabric放在devDependencies,通过npm或者yarn安装后IDE报错无法使用 #62

Closed
travonf opened this issue Oct 26, 2020 · 5 comments

Comments

@travonf
Copy link

travonf commented Oct 26, 2020

Error: Failed to load plugin 'eslint-comments' declared in '.eslintrc.js » D:\projects\my-project\node_modules\@umijs\fabric\dist\eslint.js': Cannot find module 'eslint-plugin-eslint-comments'
Require stack:
- D:\projects\my-project\__placeholder__.js

Error: Failed to load plugin 'eslint-comments' declared in '.eslintrc.js » D:\projects\my-project\node_modules\@umijs\fabric\dist\eslint.js': Cannot find module 'eslint-plugin-eslint-comments'
Require stack:
- D:\projects\my-project\__placeholder__.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
    at Function.resolve (internal/modules/cjs/helpers.js:80:19)
    at Object.resolve (D:\projects\my-project\node_modules\eslint\lib\shared\relative-module-resolver.js:40:50)
    at ConfigArrayFactory._loadPlugin (D:\projects\my-project\node_modules\eslint\lib\cli-engine\config-array-factory.js:1010:39)
    at D:\projects\my-project\node_modules\eslint\lib\cli-engine\config-array-factory.js:901:33
    at Array.reduce (<anonymous>)
    at ConfigArrayFactory._loadPlugins (D:\projects\my-project\node_modules\eslint\lib\cli-engine\config-array-factory.js:897:22)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (D:\projects\my-project\node_modules\eslint\lib\cli-engine\config-array-factory.js:720:44)
    at _normalizeObjectConfigDataBody.next (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigData (D:\projects\my-project\node_modules\eslint\lib\cli-engine\config-array-factory.js:660:20)
@travonf travonf closed this as completed Oct 27, 2020
@lizhongyue248
Copy link

怎么解决的啊请问

@bluescurry
Copy link

怎么解决的啊请问

升级eslint、prettier、stylelint三个包到最新版本,就好了

@biaomingzhong
Copy link

+1 升级了也不行

@biaomingzhong
Copy link

升到 2.6.2 了

@Angeliz
Copy link

Angeliz commented Apr 26, 2022

+1 升级了也不行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants