iamshaunjp / iamshaunjp/Complete-React-Tutorial

cannot destructure the data object

Open
#31 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
2k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

![image](https://github.com/iamshaunjp/Complete-React-Tutorial/assets/63918548/4a20d6a8-2651-4b13-b0a3-f6e3aaacfd6b)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.