【问题标题】:Cannot read property 'engine' of undefined - Webpack React无法读取未定义的属性“引擎” - Webpack React
【发布时间】:2017-09-23 13:37:08
【问题描述】:

我尝试学习 React.JS,通过输入“webpack”命令,我发现了这个错误:

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

./public/assets/react-source/catalog-app.js 模块构建中的错误 失败:TypeError:无法读取未定义的属性“引擎” 加载时 (/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:无法读取属性“引擎” 不明确的 加载时 (/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 应用之前运行良好。

【问题讨论】:

标签: javascript reactjs webpack


【解决方案1】:

输入以下命令即可解决问题:

npm install transform 

然后

npm install

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-12-17
    • 2017-12-02
    • 1970-01-01
    • 2019-09-05
    • 2022-11-02
    • 2021-10-15
    • 1970-01-01
    • 2018-03-03
    相关资源
    最近更新 更多