【发布时间】:2018-06-10 18:38:49
【问题描述】:
安装在package.json
"babel-preset-flow": "^6.23.0",
"eslint-plugin-flowtype": "2.35.1",
"flow-bin": "^0.55.0",
"flow-typed": "2.1.5",
"standard-flow": "^1.0.0",
"babel-eslint": "8.0.0",
"eslint": "^4.7.1",
"eslint-plugin-flowtype": "2.35.1",
错误:无法加载插件流类型--解析器:找不到模块 'eslint-plugin-flowtype--解析器'
错误:无法加载插件流类型--解析器:找不到模块 'eslint-plugin-flowtype--解析器' 在 Function.Module._resolveFilename (module.js:489:15) 在 Function.resolve (internal/module.js:18:19)
我的标准配置..
"standard": {
"ignore": [
"/flow-type/**/*"
],
"env": [
"mocha"
],
"globals": [
"fetch"
],
"parser": "babel-eslint",
"extends": [
"plugin:flowtype/recommended"
],
"plugins": [
"flowtype"
]
},
即使我在控制台中运行...
npx standard --fix | snazzy && npx flow
....
.../flow-typed/npm/sinon_vx.x.x.js
203:27 error '$Exports' is not defined
206:27 error '$Exports' is not defined
209:27 error '$Exports' is not defined
... // MORE ..
【问题讨论】:
-
我不知道这是否与您的错误有关,但您在
package.json中列出了两次"eslint-plugin-flowtype"。
标签: javascript babeljs eslint flowtype