【问题标题】:Redux "Real World" example can't run on Apache. With error "Uncaught Invariant Violation: Minified React error #130;"Redux“真实世界”示例无法在 Apache 上运行。出现错误“未捕获的不变违规:缩小反应错误 #130;”
【发布时间】:2016-10-13 10:15:44
【问题描述】:

我从http://redux.js.org/docs/introduction/Examples.html 构建“真实世界”示例。它可以“npm start”并且运行良好。但是当“npm run build”,我将 build/index.html 和 build/static 复制到我的 Apache 服务器根目录时,它会报告“Uncaught Invariant Violation: Minified React error #130;”错误。

screen shot

谁能帮帮我?

在我的主机文件中: 127.0.0.1 app.jogooolocal.com

在 httpd-vhosts.conf 文件中 DocumentRoot "E:/code/app" 服务器名称 app.jogooolocal.com AllowEncodedSlashes On 选项索引 FollowSymLinks 允许覆盖所有 要求所有授予

我的文件夹结构如下: E:/code/app/index.html E:/code/app/static/js/main.8a6eb2e1.js E:/code/app/static/js/main.8a6eb2e1.js.map

【问题讨论】:

    标签: reactjs redux


    【解决方案1】:

    示例有错误。 在文件末尾添加export default Root examples/real-world/src/containers/Root.prod.js

    我报错了。

    https://github.com/reactjs/redux/issues/2036

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-19
      • 2015-06-09
      • 2016-07-20
      • 1970-01-01
      • 2018-10-29
      相关资源
      最近更新 更多