alvarotrigo / alvarotrigo/react-fullpage

'fp_utils' is not defined with Gatsby

Aperta
#110 24 commenti 0 reazioni 0 assegnatari Vedi su GitHub
documentation good first issue question
Lingua principale
JavaScript
Stelle
1.3k
Fork
172
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello I tried to set up FullPage.JS with Gatsby and as soon as I add an extension (Parallax or similar) I get this message every time. No matter how often I try it, or which examples I take from the docs, it just doesn't work. It would be great if someone could help me or a working example (the Gatsby link in the docs doesn't work, the one from Next.JS does). I also used the example from https://github.com/alvarotrigo/react-fullpage/issues/31, but still the same error

```js
import React from "react"
import { Link } from "gatsby"

import Layout from "../components/layout"
import SEO from "../components/seo"

import '../components/libs/fullpage.parallax.min'
import '../components/libs/fullpage.scrollHorizontally.min'

import ReactFullpage from '@fullpage/react-fullpage'

const GatsbyFullpage = () => (




console.log('render prop change') || (



Section 1




Section 2




Section 3




)}
/>

Go back to the homepage

)

export default GatsbyFullpage
```

> fp_utils' is not defined no-undef
'fp_utils' is not defined no-undef
'fullpage_api' is not defined no-undef
Expected an assignment or function call and instead saw an expression no-unused-expressions
warning Expected '===' and instead saw '==' eqeqeq
warning Unexpected use of comma operator no-sequences
warning Expected '!==' and instead saw '!=' eqeqeq
error 'fullpage_api' is not defined no-undef
error 'fullpage_api' is not defined no-undef
warning Unexpected use of comma operator no-sequences
warning Unexpected use of comma operator no-sequences

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.