Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using starter code and getting an error that useState is undefined? #165

Open
chinapicke opened this issue Nov 26, 2023 · 1 comment
Open

Comments

@chinapicke
Copy link

I've copied everything 100% as the docs but still getting the below error code.

Cannot read properties of null (reading 'useState')
TypeError: Cannot read properties of null (reading 'useState')
    at useState (http://localhost:3000/static/js/bundle.js:567830:25)
    at T (http://localhost:3000/static/js/bundle.js:536842:28)
    at B (http://localhost:3000/static/js/bundle.js:536924:13)
    at renderWithHooks (http://localhost:3000/static/js/bundle.js:127676:22)
    at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:130962:17)
    at beginWork (http://localhost:3000/static/js/bundle.js:132258:20)
    at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:117268:18)
    at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:117312:20)
    at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:117369:35)
    at beginWork$1 (http://localhost:3000/static/js/bundle.js:137243:11)

I have also uninstalled and reinstalled with the same error!

@FredrikOseberg
Copy link
Owner

Hey. I just setup a new project just fine. You'll need to share a reproducable example that I can look at in order to see if there is an actual fault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants