
https://reactjs.org/docs/error-decoder.html/?invariant=321

具体原因是:dll 打包文件里,把react相关的内容单独打包出去,导致react 和 react相关内容,生成了两个react实例。
方案:把dll里的react-router剔除掉。
https://juejin.im/post/5d9fe147e51d4578477a671b
具体原因是:dll 打包文件里,把react相关的内容单独打包出去,导致react 和 react相关内容,生成了两个react实例。
方案:把dll里的react-router剔除掉。
https://juejin.im/post/5d9fe147e51d4578477a671b
本文标题:react webpack dll打包后 hooks失败 #32
本文链接:https://www.haomeiwen.com/subject/ptxzxhtx.html
网友评论