![](/img/trans.png)
[英]Webpack5 + react-refresh-webpack-plugin does not work
[英]Cannot read property 'signature' of undefined - react-refresh-webpack-plugin
我正在尝试将此库: react-refresh-webpack-plugin添加到我的反应应用程序中,但出现以下错误:
Cannot read property 'signature' of undefined #229
我按照图书馆的自述文件添加它,但不知道如何解决这个问题。
解决方案是删除自述文件中提到的这个插件
isDevelopment && require.resolve('react-refresh/babel')
只保留另一个插件就足够了:
plugins: [isDevelopment && new ReactRefreshWebpackPlugin()].filter(Boolean),
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.