Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GatsbyJS build process ends in a Invariant Violation: Minified React error #130 #8991

Closed
ValidRobot opened this issue Oct 10, 2018 · 1 comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@ValidRobot
Copy link

Description

GatsbyJS build process when react-fullpage is used in the project ends in an Invariant Violation 130 error. Development works without any problems.

react-fullpage: https://github.com/alvarotrigo/react-fullpage

Steps to reproduce

Build a GatsbyJS with react-fullpage.
Example repository: https://github.com/ValidRobot/gatsby_react-fullPage_Invariant-Violation-130

Expected result

Build process should work

Actual result

Build process ends in an Invariant Violation #130 error

Environment

System:
OS: 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
Binaries:
Node: 8.11.3 - ~/.nvm/versions/node/v8.11.3/bin/node
Yarn: 1.9.4 - /usr/bin/yarn
npm: 5.6.0 - ~/.nvm/versions/node/v8.11.3/bin/npm
Browsers:
Chrome: 69.0.3497.100
Firefox: 60.0
npmPackages:
gatsby: ^2.0.0 => 2.0.19
npmGlobalPackages:
gatsby-cli: 1.1.58

@kakadiadarpan kakadiadarpan added the type: question or discussion Issue discussing or asking a question about Gatsby label Oct 10, 2018
@kakadiadarpan
Copy link
Contributor

kakadiadarpan commented Oct 10, 2018

@ValidRobot As per the documentation of react-fullpage, you are supposed to import it the following way(commonjs build) when using SSR or pre-rendering the pages:

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

You can also remove the gatsby-node.js after changing the import as above. This should fix the issue for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants