Closed hallen95 closed 2 years ago
I didn't try that before. Isn't it works?
I am trying to get it working with next but I keep getting this error "ReferenceError: navigator is not defined" i'm not sure if I am something wrong or there is an issue here is the full console log:
index.js?46cb:323 Uncaught at Object.
@Omid-Mirzaee-Yazdi "ReferenceError: navigator is not defined"
error happening because Next.js trying to render it on server side, where navigator
object is not present.
To avoid this issue try use dynamic import with { ssr: false }
option
I have the same issue here.
It's breaking on utils\environment.js:3: when trying to read the user agent.
What if instead?
if (typeof window !== undefined) { var isIphone = /iPhone/.test(navigator.userAgent); var isSafari = /Safari/.test(navigator.userAgent); }
Having the same issue with ssr:false. It says "Fade", or "Move" etc. are not functions when I called them.
I tried to use navigator.userAgent, cause there's some minor issue in iOS Safari. When user scroll up and down, iOS Safari browser's screen height change frequently. (Because of search bar, that UI shrinks when you scroll down, expand when you scroll up.)
So I added that code (environment.ts), that throws that error in NextJS. I just fixed now, sorry for late update guys :(
Hello, i'm kinda new with all the libraries that has to do with transitions and scrolls. I have a project with next, is this library working in it?