【发布时间】:2020-04-03 13:32:58
【问题描述】:
我正在尝试部署我使用 create-react-app 创建的应用程序。它在本地工作得很好。但是在 Heroku 上部署时,会出现如下错误:
SecurityError: The operation is insecure.
我正在使用 Pusher 库制作一个反应式记事本,但我不知道如何在 heroku 上正确部署它。 我在 firefox、chrome 和 edge 上试过,但似乎没有用。
这表明问题出在 /app/webpack/bootstrap 中。
783 |
784 | // Execute the module function
> 785 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
| ^ 786 |
787 | // Flag the module as loaded
788 | module.l = true;```
Any ideas on how to solve this error would be much appreciated.
【问题讨论】:
标签: reactjs heroku webpack pusher-js