陣營v 15.4.0發佈今天上午,似乎已經包括打破反應抽頭事件 - 插件V1.0.0產生這個錯誤發生變化:Material-ui對React 15.4.0中的更改進行響應? 「無法解析模塊‘反應/ lib目錄/ EventPluginHub’」
$ npm build
> [email protected] build /.../myProject
> node scripts/build.js
Creating an optimized production build...
Failed to create a production build. Reason:
Module not found: Error: Cannot resolve module 'react/lib/EventPluginHub' in /.../myProject/node_modules/react-tap-event-plugin/src
(注:我清理輸出一點點)
根據THIS react-tap-event issue log的反應抽頭事件修復構建問題2.0.0版本。但是,material-ui仍在使用react-tap-event版本1.0.0。這裏有什麼選擇?我能想到的唯一選項是:
- 降級反應和其他包中的鏈接上面描述
- 等待材質的UI升級到反應抽頭事件2.0.0
這裏有其他解決方案嗎?據我所知,如果我想使用反應15.4.0,我幾乎死在水中。
material-ui問題:https://github.com/callemall/material-ui/issues/5573 –