mrgalaxy:stripe 应用未定义

mrgalaxy:stripe App is not defined

这个 Meteor web 浏览器站点使用包 mrgalaxy:stripe,第一个指令是 将 App.accessRule('https://*.stripe.com/*'); 放入客户端文件 mobile-config.js.
正确完成后,会导致浏览器发出错误:

Uncaught ReferenceError: App is not defined

我查看了 Meteor doc 但没弄明白。

知道如何解决这个问题吗?谢谢

您应该将该文件放在应用程序的根目录中,而不是在 client 文件夹中。

来自mrgalaxy:stripe documentation

In order for Stripe.js to be loaded directly on iOS and Android a new rule needs to be created in your mobile-config.js located in the root of your project. Create the new file if it doesn't already exist and insert the line below.

这是移动版本访问外部 URL 所必需的。如果您从 Meteor 构建移动应用程序,则需要在部署前向该 mobile-config.js 文件添加额外的配置信息。参见 https://docs.meteor.com/api/mobile-config.html