Skip to content

TypeError: this.updater.enqueueCallback is not a function #55

@henrikengelbrink

Description

@henrikengelbrink

Hello guys,
I have a problem using this package. I've written the following code:

import React, {Component} from 'react';
import { Fullpage, Slide, HorizontalSlider } from 'fullpage-react';

class Content extends Component {
	render() {
		const fullPageOptions = {
			scrollSensitivity: 7,
			touchSensitivity: -3,
			scrollSpeed: 500,
			resetSlides: true,
			hideScrollBars: true,
			enableArrowKeys: true,
			breakpoint: 375
		};
		const verticalSlides = [
			<Slide style={{backgroundColor: 'blue'}}>
			  <p>Slide 1</p>
			</Slide>,
			<Slide style={{backgroundColor: 'pink'}}><p>Slide 3</p></Slide>
		];
		fullPageOptions.slides = verticalSlides;

		return (
			<Fullpage {...fullPageOptions}>
      		</Fullpage>
		);
	}
}

export default Content

If I open the webpage, for some seconds the page is white and then I get the following error messages:
TypeError: this.updater.enqueueCallback is not a function
TypeError: Cannot read property 'removeEventListener' of null

I'm using webpack and babbel, is this the problem ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions