You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught Error: Minified React error #119; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=119 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
提示压缩了之后的错误。错误如下,
错误描述的详情: http://facebook.github.io/react/docs/error-decoder.html?invariant=119
看样子,生产代码肯定是压缩的,问题感觉没法解决的。
所以我看着代码直接改成自己的版本了。
因为我的项目中大量使用
lodash
,而且没有使用React.createClass
写propTypes
,因此直接使用lodash
判断shouldComponentUpdate
了,另外习惯问题,没使用React.createClass
,而是使用了class Component extends React.Component
形式,所以打包的时候需要使用 babel 另行打包。The text was updated successfully, but these errors were encountered: