【问题标题】:Reaction Commerce: TypeError: require(...).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED is undefinedReaction Commerce: TypeError: require(...).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED 未定义
【发布时间】:2017-10-30 06:26:54
【问题描述】:

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

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

以及 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。有什么想法可以在这里遗漏吗?

问题源代码: https://github.com/MassDistributionMedia/rc-ca-blinds/tree/custom-cart_rc1.5.6

【问题讨论】:

    标签: javascript reactjs meteor


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-15
      • 2017-11-07
      • 1970-01-01
      相关资源
      最近更新 更多