Reaction Commerce: TypeError: require(...).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED 未定义 [英] Reaction Commerce: TypeError: require(...).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED is undefined

查看:106
本文介绍了Reaction Commerce: TypeError: require(...).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED 未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 rc run 将 Reaction Commerce 从 1.4.x 升级到 1.5.x 我在 Firefox 中遇到此错误:

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

以及 Chrome 中的这些错误:

and these errors in Chrome:

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

我发现 imports/plugins/core/ui/client/helpers/react-template-helper.js 我认为主要加载 React 的地方.有什么想法可能在这里遗漏吗?

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?

问题源代码:https://github.com/MassDistributionMedia/rc-ca-百叶窗/树/custom-cart_rc1.5.6

推荐答案

请从 client/modules/core/main.js 中移除 react-tap-event-plugin.不再需要.

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

这篇关于Reaction Commerce: TypeError: require(...).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED 未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆