-
Notifications
You must be signed in to change notification settings - Fork 101
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
[求助]eslint 一直报找不到@babel/plugin-proposal-decorators
#122
Comments
+1 |
在tsconfig.json的include加上.eslintrc.js,"include": ["mock//*", "src//", "config/**/", ".umirc.ts", "typings.d.ts", ".eslintrc.js"], |
我现在是 JS 项目会这样,令人窒息 |
终于搞懂了,我手动按着依赖往上一层层找确实找不到依赖,果然代码是不会骗人的 _(:з」∠)_ 研究了很久,发现因为我是用的 pnpm,而 pnpm 默认创建的是半严格的 node_modules 导致的问题,可通过配置 shamefully-hoist 暴力解决,我目前配置的是 |
直接配shamefully-hoist=true再重装依赖好像就可以了 |
这是最暴力的解决方案,倒是看到不少开源库也是这么干的 |
+1 |
node: 12.22.0
yarn: 1.22.17
farbic version: 2.6.6
依赖:
编辑器报错
但是 node_modules可以找到
plugin-proposal-decorators
请问这是什么原因呢
The text was updated successfully, but these errors were encountered: