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

cannot destructure the data object #31

Open
payalmit opened this issue Jul 2, 2023 · 1 comment
Open

cannot destructure the data object #31

payalmit opened this issue Jul 2, 2023 · 1 comment

Comments

@payalmit
Copy link

payalmit commented Jul 2, 2023

image

Uncaught runtime errors:
×
ERROR
Cannot destructure property 'data' of '(0 , useFetch__WEBPACK_IMPORTED_MODULE_2_.default)(...)' as it is null.
TypeError: Cannot destructure property 'data' of '(0 , useFetch__WEBPACK_IMPORTED_MODULE_2_.default)(...)' as it is null.
at Home (http://localhost:3000/main.cc6b4c03545d80ef5a52.hot-update.js:72:11)
at renderWithHooks (http://localhost:3000/static/js/bundle.js:21462:22)
at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:24748:17)
at beginWork (http://localhost:3000/static/js/bundle.js:26044:20)
at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:11054:18)
at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:11098:20)
at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:11155:35)
at beginWork$1 (http://localhost:3000/static/js/bundle.js:31029:11)
at performUnitOfWork (http://localhost:3000/static/js/bundle.js:30276:16)
at workLoopSync (http://localhost:3000/static/js/bundle.js:30199:9)
ERROR
Cannot destructure property 'data' of '(0 , useFetch__WEBPACK_IMPORTED_MODULE_2_.default)(...)' as it is null.
TypeError: Cannot destructure property 'data' of '(0 , useFetch__WEBPACK_IMPORTED_MODULE_2_.default)(...)' as it is null.
at Home (http://localhost:3000/main.cc6b4c03545d80ef5a52.hot-update.js:72:11)
at renderWithHooks (http://localhost:3000/static/js/bundle.js:21462:22)
at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:24748:17)
at beginWork (http://localhost:3000/static/js/bundle.js:26044:20)
at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:11054:18)
at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:11098:20)
at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:11155:35)
at beginWork$1 (http://localhost:3000/static/js/bundle.js:31029:11)
at performUnitOfWork (http://localhost:3000/static/js/bundle.js:30276:16)
at workLoopSync (http://localhost:3000/static/js/bundle.js:30199:9)
ERROR
Cannot destructure property 'data' of '(0 , useFetch__WEBPACK_IMPORTED_MODULE_2_.default)(...)' as it is null.
TypeError: Cannot destructure property 'data' of '(0 , useFetch__WEBPACK_IMPORTED_MODULE_2_.default)(...)' as it is null.
at Home (http://localhost:3000/main.cc6b4c03545d80ef5a52.hot-update.js:72:11)

how to solve this error

@Azfar-Tariq
Copy link

Can you show you code? I followed the tutorial and mine worked perfectly.

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