报错指南

报错解决

1、问题描述:

Error: EPERM: operation not permitted, uv_cwd npm

  

出现场景和原因:更新 npm或者重新编译项目时

解决方案:参考 https://www.jianshu.com/p/f3c5d49d6301

 

2、问题描述:

./node_modules/react-intersection-observer/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js 1:0-61

出现场景和原因:因为nodemoudle里面的一个小组件依赖bebal,^7.13.2自动升级了最新bable/runtime,

bable最新版本7.13.2和老版本(7.12.3以下就能用)不兼容

解决方案:参考 https://blog.csdn.net/qq_41594043/article/details/90411988

 

3、问题描述:

Module parse failed: Unexpected token (77:11)
You may need an appropriate loader to handle this file type.
|
| var Demo = (0, _AsyncComponent2.default)(function () {
>     return import( /* webpackChunkName: "demo" */"./demo");
| });
| var ReturnAfterList = (0, _AsyncComponent2.default)(function () {

出现场景和原因:webpack版本需要升级

解决方案:可参考 https://www.cnblogs.com/youngboy-front/p/10341959.html

 

4、问题描述:

ESLint Unary operator '++' used.

  出现场景和原因:项目配置了es6 ,es6认为一元++是不安全的,要改成 a += 1;

解决方案:可参考https://www.cnblogs.com/cap-rq/p/12972684.html

 

posted on 2021-02-26 14:54  小程Eant  阅读(420)  评论(0)    收藏  举报

导航