简体   繁体   English

无法读取未定义的属性“签名”-react-refresh-webpack-plugin

[英]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.

相关问题 Webpack5 + react-refresh-webpack-plugin 不起作用 - Webpack5 + react-refresh-webpack-plugin does not work 无法读取未定义的属性“组件”-react 组件插件的 webpack 构建 - Cannot read property 'Component' of undefined - webpack build of react component plugin 模块解析失败:意外令牌 - react-refresh-webpack-plugin/loader - Module parse failed: Unexpected token - react-refresh-webpack-plugin/loader 无法读取未定义的属性“ engine”-Webpack React - Cannot read property 'engine' of undefined - Webpack React Webpack 4和Uglify插件(TypeError:无法读取未定义的属性'length') - Webpack 4 and Uglify Plugin (TypeError: Cannot read property 'length' of undefined) React / Webpack / Django-未捕获的TypeError:无法读取未定义的属性“ XXX” - React/Webpack/Django - Uncaught TypeError: Cannot read property 'XXX' of undefined 无法读取未定义的Webpack Bootstrap React的属性“调用” - Cannot read property 'call' of undefined Webpack Bootstrap React Webpack:TypeError:无法读取未定义的属性“属性” - Webpack: TypeError: Cannot read property 'properties' of undefined npx webpack - 无法读取undefined的属性'minify' - npx webpack - Cannot read property 'minify' of undefined 无法读取未定义的属性 - Cannot read property of undefined on react
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM