alvarotrigo / alvarotrigo/react-fullpage

'fp_utils' is not defined with Gatsby

Offen
#110 24 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
documentation good first issue question
Vorherrschende Sprache
JavaScript
Sterne
1.3k
Forks
172
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.