Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

react-visibility-sensor: this.setState is not a function #417

Open
screendriver opened this issue Aug 22, 2017 · 3 comments
Open

react-visibility-sensor: this.setState is not a function #417

screendriver opened this issue Aug 22, 2017 · 3 comments

Comments

@screendriver
Copy link

I want to use react-visibility-sensor but unfortunately I get this error:

6af69881-d748-496f-88d2-f29139f5a98a

@developit do you know what's going on here? I get this message in a loop endless times 馃

@developit
Copy link
Member

seems like an issue with create-react-class. can you try aliasing that to preact-compat/lib/create-react-class?

@david-trejo-ck
Copy link

david-trejo-ck commented Apr 23, 2018

This bug was happening for me as well鈥揑 added

create-react-class: 'preact-compat/lib/create-react-class' to my alias file, and this error went away. Thank you Jason and Christian! 馃檱

* thanks for finding the typo @tiagojsalmeida !

@tiagojsalmeida
Copy link

For future reference, the alias is create-react-class, not react-create-class

"create-react-class": "preact-compat/lib/create-react-class",

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants