civiccc / react-waypoint

A React component to execute a function whenever you scroll to an element.
MIT License
4.08k stars 208 forks source link

Error: Element type is invalid #358

Open bencehusi opened 2 years ago

bencehusi commented 2 years ago

I got this error when I import the package into my component:

import { Waypoint } from 'react-waypoint'

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Using React 17.02 (with next.js 12).

Any ideas what's going on here?