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