设置轮播图后报错:react-dom.development.js:6202 Unable to preventDefault inside passive event listener invoc

 设置轮播图后报错:react-dom.development.js:6202 Unable to preventDefault inside passive event listener invocation

  1. 轮播图的自动轮播与浏览器的阻止默认事件相悖,可找到相应文件注释阻止默认实践

解决方案:

把默认事件注释

@2

 

解决方案 去掉 React.StrictMode

 

@3

安装移动端rem自适应的时候出问题

报错ValidationError: Invalid options object. postcss Loader has been initialized using an opti ons object

Uncaught Error: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
ValidationError: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'plugins'. These properties are valid:
   object { postcssOptions?, execute?, sourceMap? }

卸载less-loader,安装less-loader@2.1.1

yarn remove less-loader

yarn add postcss-loader@2.1.1

 

@4

yarn安装包的时候,报错

yarn
yarn install v1.19.1
info No lockfile found.
info There appears to be trouble with your network connection. Retrying...
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.npm.taobao.org/animate.css: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND web-proxy".
  • 错误发生意外错误:“https://registry.npm.taobao.org/animate.css:无法建立隧道套接字

taobao镜像不可用
还原成npm 的

执行
yarn config set registry https://registry.npmjs.org --global

 

 

  • 5
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值