我尝试学习React.JS,通过输入“webpack”命令,我发现了这个错误:
Hash: 04008667f996e5267ae1 Version: webpack 1.14.0 Time: 580ms + 2 hidden modules
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)
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)
有人可以帮忙吗? 已经安装了 react 引擎。我的 React 应用程序之前运行良好。
最佳答案
通过输入以下命令解决问题:
npm install transform
然后
npm install
关于javascript - 无法读取未定义的属性 'engine' - Webpack React,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43629298/