react-fullpage
react-fullpage copied to clipboard
Error when using with GatsbyJS
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?
@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';