Replies: 1 comment
-
Check where you use useRef or createRef in your code, the problem could be caused by something like this: const someRef = useRef()
useEffect(() => {
console.log(someRef.current) // will throw an error "Cannot read properties of undefined(reading 'current')" because the current value of someRef is undefined
}, []) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use Preact with Next then I install Preact and rewrite a config on next.config.js but I'm facing the following issue when run
yarn start
the page doesn't work, just shows a blank screen with some content.Beta Was this translation helpful? Give feedback.
All reactions