setTimeout not a function, auth0 with preact

Getting an error with Auth0,

ReferenceError: setTimeout is not defined

Not sure why this is happening, we have webpack along with preact

Jared

Hi, Jared. Thanks for posting your question here.
It’d be great if you could share a code example or GitHub repo for use to reproduce and help you.

We found the solution, thank you, just had to declare a global setTimeout function

1 Like