Closed Havock94 closed 1 year ago
Hi, sorry for delay i responding. Guess I've been pretty heads down on work stuff.
I've can't seem to replicate this. Can you give me more info on your environment, or ideally, share a reduced test case?
Thanks
Hey,
I had a similar issue. Are you using Next.js with dynamic importing for the cursor? If so, try importing through a regular import statement. That seemed to work for me.
When I originally built this, using with Next required a dynamic import. But I refactored to make that not needed (hopefully).
But a refactor after that probably reintroduced the dynamic import requirement - probably from the useEventListener
hooks's default to window.
So, use a dynamic import for now.
In app.js / app.tsx
const AnimatedCursor = dynamic(() => import('react-animated-cursor'), {
ssr: false
})
I can look at removing this requirement though.
Hello, I'm having an issue that randomly appears while refreshing my app. The error is
Uncaught TypeError: Cannot read properties of null (reading 'style') at (index.umd.js?5799:209:1)
My app.js returns the following component
and the DotRing component simply returns
Do you have any idea on how to fix this? Thank you!