You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: 8.0.3
When importing react-waypoint as import Waypoint as 'react-waypoint' my tests error with:
Invariant Violation: 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.
However, if I try to import as: import * as Waypoint from 'react-waypoint'
Typescript will complain: TS2604: JSX element type 'Waypoint' does not have any construct or call signatures.
The workaround I've found is to use 7.3.4 which allows me to import * as Waypoint from 'react-waypoint' and my tests pass.
Are the typescript definitions broken?
The text was updated successfully, but these errors were encountered:
Version: 8.0.3
When importing
react-waypoint
asimport Waypoint as 'react-waypoint'
my tests error with:However, if I try to import as:
import * as Waypoint from 'react-waypoint'
Typescript will complain:
TS2604: JSX element type 'Waypoint' does not have any construct or call signatures.
The workaround I've found is to use
7.3.4
which allows me toimport * as Waypoint from 'react-waypoint'
and my tests pass.Are the typescript definitions broken?
The text was updated successfully, but these errors were encountered: