Reaction Commerce: TypeError: require(…).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED is undefined

夙愿已清 提交于 2020-12-15 05:19:42

问题


Upgrading Reaction Commerce from 1.4.x to 1.5.x with rc run I'm getting this error in Firefox:

TypeError: require(...).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED is undefined

and these errors in Chrome:

Uncaught TypeError: Cannot read property 'EventPluginHub' of undefined
Uncaught TypeError: Cannot read property 'marketplaceEnabled' of undefined

I found imports/plugins/core/ui/client/helpers/react-template-helper.js where React is mainly being loaded I think. Any ideas what could be missing here?

Issue Source Code: https://github.com/MassDistributionMedia/rc-ca-blinds/tree/custom-cart_rc1.5.6


回答1:


Please remove react-tap-event-plugin from client/modules/core/main.js. It's no longer necessary.



来源:https://stackoverflow.com/questions/47009195/reaction-commerce-typeerror-require-secret-internals-do-not-use-or-you

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!