Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

App only renders background and doesn't render the body - TypeErro: useRef is not a function #98

Closed
Mushorwell opened this issue Jun 26, 2020 · 1 comment

Comments

@Mushorwell
Copy link

When I load this react todo list, only the background is rendered. In the console there's an uncaught error:

Uncaught TypeError: useRef is not a function
at useTrackerClient (useTracker.js:108)
at useTracker.js:206
at withTracker.jsx:10
at updateForwardRef (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:17836)
at beginWork (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:18912)
at performUnitOfWork (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:21710)
at workLoop (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:21750)
at HTMLUnknownElement.callCallback (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:3709)
at Object.invokeGuardedCallbackDev (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:3759)
at invokeGuardedCallback (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:3816)

Also the following message after the uncaught error:

The above error occurred in the component:
in ForwardRef
in ForwardRef

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
logCapturedError @ modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:19573

@filipenevola
Copy link
Collaborator

Hey @Mushorwell , thank you for your feedback.

I have incorporated your feedback here in this new repo, the new home of react tutorial.

https://github.com/meteor/react-tutorial/ (https://react-tutorial.meteor.com)

It's PR friendly so if you want to make more changes, go ahead there!

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

2 participants