简体   繁体   English

无法读取未定义的属性“ engine”-Webpack React

[英]Cannot read property 'engine' of undefined - Webpack React

I try to learn React.JS, by typing "webpack" command, i found this error : 我尝试学习React.JS,通过键入“ webpack”命令,我发现了此错误:

Hash: 04008667f996e5267ae1 Version: webpack 1.14.0 Time: 580ms + 2 hidden modules 哈希:04008667f996e5267ae1版本:webpack 1.14.0时间:580ms + 2个隐藏模块

ERROR in ./public/assets/react-source/catalog-app.js Module build failed: TypeError: Cannot read property 'engine' of undefined at load (/var/www/html/web/node_modules/transform/index.js:33:18) at Object.transform (/var/www/html/web/node_modules/transform/index.js:19:3) ./public/assets/react-source/catalog-app.js中的错误模块构建失败:TypeError:加载时无法读取未定义的属性'engine'(/var/www/html/web/node_modules/transform/index.js :33:18)在Object.transform(/var/www/html/web/node_modules/transform/index.js:19:3)

ERROR in ./public/assets/react-source/catalog-custom-item-app.js Module build failed: TypeError: Cannot read property 'engine' of undefined at load (/var/www/html/web/node_modules/transform/index.js:33:18) at Object.transform (/var/www/html/web/node_modules/transform/index.js:19:3) ./public/assets/react-source/catalog-custom-item-app.js中的错误模块构建失败:TypeError:加载时无法读取未定义的属性'engine'(/ var / www / html / web / node_modules / transform /index.js:33:18)在Object.transform(/var/www/html/web/node_modules/transform/index.js:19:3)

Anyone can help pls ? 任何人都可以帮忙吗? Already installed react-engine. 已经安装了react-engine。 My react app running well before. 我的React应用之前运行良好。

Problem solved by typing this command : 通过键入以下命令解决了问题:

npm install transform 

then 然后

npm install

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 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 无法读取未定义的属性“组件”-react 组件插件的 webpack 构建 - Cannot read property 'Component' of undefined - webpack build of react component plugin 无法读取未定义的属性“签名”-react-refresh-webpack-plugin - Cannot read property 'signature' of undefined - react-refresh-webpack-plugin npx webpack - 无法读取undefined的属性'minify' - npx webpack - Cannot read property 'minify' of undefined Webpack:TypeError:无法读取未定义的属性“属性” - Webpack: TypeError: Cannot read property 'properties' of undefined 无法读取未定义的属性 - Cannot read property of undefined on react 带有Webpack错误的React Storybook-模块构建失败:TypeError:无法读取未定义的属性'thisCompilation' - React Storybook with Webpack Error - Module build failed: TypeError: Cannot read property 'thisCompilation' of undefined 使用webpack进行反应,“ bootstrap.bundle.js无法读取未定义的属性'setAttribute'”-Popper - React with webpack, “bootstrap.bundle.js Cannot read property 'setAttribute' of undefined” - popper React - TypeError:无法读取未定义的属性“setState” - React - TypeError: Cannot read property 'setState' of undefined
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM