[英]Cannot read property 'signature' of undefined - react-refresh-webpack-plugin
I am trying to add this library: react-refresh-webpack-plugin to my react application and I get the following error:我正在尝试将此库: react-refresh-webpack-plugin添加到我的反应应用程序中,但出现以下错误:
Cannot read property 'signature' of undefined #229
I followed the Readme of the library to add it and have no clue how to resolve this.我按照图书馆的自述文件添加它,但不知道如何解决这个问题。
The solution was to just remove this plugin that was mentioned in the Readme解决方案是删除自述文件中提到的这个插件
isDevelopment && require.resolve('react-refresh/babel')
Only keeping the other plugin was sufficient for it to work:只保留另一个插件就足够了:
plugins: [isDevelopment && new ReactRefreshWebpackPlugin()].filter(Boolean),
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.