![](/img/trans.png)
[英]React/Webpack/Django - Uncaught TypeError: Cannot read property 'XXX' of undefined
[英]Cannot read property 'engine' of undefined - Webpack React
我尝试学习React.JS,通过键入“ webpack”命令,我发现了此错误:
哈希:04008667f996e5267ae1版本:webpack 1.14.0时间:580ms + 2个隐藏模块
./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)
./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)
任何人都可以帮忙吗? 已经安装了react-engine。 我的React应用之前运行良好。
通过键入以下命令解决了问题:
npm install transform
然后
npm install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.