error

1.

        new webpack.optimize.OccurenceOrderPlugin(),

        ^

TypeError: webpack.optimize.OccurenceOrderPlugin is not a constructor

新版改为OccurrenceOrderPlugin

 

2.

configuration.resolve.extensions[0] should not be empty.

不能为‘’,改为‘*’

 

3.

Chunk.entry was removed. Use hasRuntime()

安装extract-text-webpack-plugin新版本

 

4.

 Warning: Input is changing an uncontrolled input of type undefined to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components

用了elements组件 或者 设置了input 的 value = {this.state.value}

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Uncaught Error是指在JavaScript中发生的未捕获的错误。当代码中出现错误但没有被try-catch块或错误处理函数捕获时,就会抛出Uncaught Error。这种错误会导致代码执行中断,并在浏览器的控制台中显示错误信息。 Uncaught Error的原因可能有很多,例如语法错误、逻辑错误、网络请求失败等。为了避免出现Uncaught Error,我们可以采取以下几种解决方案: 1. 使用try-catch块捕获错误:通过将可能出现错误的代码放在try块中,并使用catch块来处理错误,可以避免出现未捕获的错误。例如: ```javascript try { // 可能出现错误的代码 } catch (error) { // 错误处理逻辑 } ``` 2. 使用错误处理函数:在JavaScript中,可以使用window.onerror全局事件处理函数来捕获未捕获的错误。该函数会在发生未捕获的错误时被调用,并可以用于记录错误信息或进行其他处理。例如: ```javascript window.onerror = function(message, source, lineno, colno, error) { // 错误处理逻辑 }; ``` 3. 使用Promise的catch方法:如果代码中使用了Promise对象,可以使用catch方法来捕获Promise中的错误。catch方法会在Promise链中的任何位置捕获错误,并执行相应的错误处理逻辑。例如: ```javascript promise.catch(function(error) { // 错误处理逻辑 }); ``` 总结一下,Uncaught Error是指在JavaScript中发生的未捕获的错误。为了避免出现这种错误,我们可以使用try-catch块、错误处理函数或Promise的catch方法来捕获和处理错误。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值