react-fullpage icon indicating copy to clipboard operation
react-fullpage copied to clipboard

Error when using with GatsbyJS

Open jskrt opened this issue 6 years ago • 1 comments

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 avatar May 26 '18 17:05 jskrt

@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';

MartinConde avatar Jun 21 '18 10:06 MartinConde