Gatsby: GatsbyJS构建过程结束于永久违反:最小化React错误#130

创建于 2018-10-10  ·  1评论  ·  资料来源: gatsbyjs/gatsby

描述

在项目中使用react-fullpage时的GatsbyJS构建过程以Invariant Violation 130错误结束。 开发工作没有任何问题。

react-fullpage: https :

重现步骤

使用react-fullpage构建GatsbyJS。
示例存储库: https :

预期结果

构建过程应该工作

实际结果

构建过程结束于Invariant Violation#130错误

环境

系统:
操作系统:Linux 4.16 Fedora 26(Workstation Edition)26(Workstation Edition)
CPU:x64 Intel(R)Core(TM)i5-4210U CPU @ 1.70GHz
Shell:5.3.1-/ usr / bin / zsh
二进制文件:
节点:8.11.3-〜/ .nvm / versions / node / v8.11.3 / bin / node
纱:1.9.4-/ usr / bin / yarn
npm:5.6.0-〜/ .nvm / versions / node / v8.11.3 / bin / npm
浏览器:
铬:69.0.3497.100
的Firefox:60.0
npmPackages:
盖茨比:^ 2.0.0 => 2.0.19
npmGlobalPackages:
gatsby-cli:1.1.58

question or discussion

最有用的评论

@ValidRobot根据react-fullpage文档,您应该在使用SSR或预渲染页面时以以下方式(commonjs构建)导入它:

import ReactFullpage from '@fullpage/react-fullpage/dist/react-fullpage-commonjs';

如上更改导入后,您也可以删除gatsby-node.js 。 这应该为您解决此问题。

>所有评论

@ValidRobot根据react-fullpage文档,您应该在使用SSR或预渲染页面时以以下方式(commonjs构建)导入它:

import ReactFullpage from '@fullpage/react-fullpage/dist/react-fullpage-commonjs';

如上更改导入后,您也可以删除gatsby-node.js 。 这应该为您解决此问题。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

KyleAMathews picture KyleAMathews  ·  3评论

theduke picture theduke  ·  3评论

Oppenheimer1 picture Oppenheimer1  ·  3评论

benstr picture benstr  ·  3评论

hobochild picture hobochild  ·  3评论