subtirelumihail / react-fullpage

A react implementation of fullpage.js
304 stars 105 forks source link

Error when using with GatsbyJS #58

Open jskrt opened 6 years ago

jskrt commented 6 years ago

Facing this error when trying to use react-fullpage in a GatsbyJS project.

SectionsContainer.js:432 Uncaught (in promise) TypeError: Cannot read property 'func' of undefined at Object../node_modules/react-fullpage/dist/SectionsContainer.js

Any ideas?

MartinConde commented 6 years ago

@jskrt it worked fine for me once I imported the Section etc like the following instead of like in the documentation:

import {SectionsContainer, Section} from '../../node_modules/react-fullpage/index.js';