我有2个项目:
我正确地构建了ProjectB,然后:yarn link
我在ProjectA的package.json
中添加了依赖项"ProjectB":"1.0.0"
然后在ProjectA根yarn link ProjectB
在尝试导入ProjectB时仍然如此:
import {Stuff} from 'ProjectB'
Vuejs项目的构建因此错误而失败(这似乎无关,但是导入导致了此错误):
ERROR Failed to compile with 1 errors
Module build failed (from ./node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js):
Error: No ESLint configuration found.
at Config.getLocalConfigHierarchy (/nodejs/wrapper_project/vuejs_frontend/node_modules/eslint/lib/config.js:268:39)
at Config.getConfigHierarchy (/nodejs/wrapper_project/vuejs_frontend/node_modules/eslint/lib/config.js:192:43)
at Config.getConfigVector (/nodejs/wrapper_project/vuejs_frontend/node_modules/eslint/lib/config.js:299:21)
at Config.getConfig (/nodejs/wrapper_project/vuejs_frontend/node_modules/eslint/lib/config.js:342:29)
at processText (/nodejs/wrapper_project/vuejs_frontend/node_modules/eslint/lib/cli-engine.js:181:33)
at CLIEngine.executeOnText (/nodejs/wrapper_project/vuejs_frontend/node_modules/eslint/lib/cli-engine.js:690:40)
at lint (/nodejs/wrapper_project/vuejs_frontend/node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js:263:17)
at transform (/nodejs/wrapper_project/vuejs_frontend/node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js:237:18)
at /nodejs/wrapper_project/vuejs_frontend/node_modules/loader-fs-cache/index.js:127:18
at ReadFileContext.callback (/nodejs/wrapper_project/vuejs_frontend/node_modules/loader-fs-cache/index.js:31:14)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:237:13)
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
我想念什么?
这些问题似乎与之相关: