This is a code repository for the corresponding YouTube video. In this tutorial we are going to build and deploy a real time chat application. Covered topics: React.js, SCSS, Framer Motion, Sanity
I've been looking around for a fix to an issue others seem to be having regarding an error that states the imgurl is undefined. I tried different resolutions, the top one i tried involved changing the image schema name to imgUrl since we were previously using duplicate names as well as implemente new line of code:
.
As opposed to the previous error i was getting previously from the video and src code:
Unable to resolve image URL from source (undefined)
at urlForImage (http://localhost:3000/static/js/bundle.js:2822:13)
at ImageUrlBuilder.url (http://localhost:3000/static/js/bundle.js:3231:14)
at ImageUrlBuilder.toString (http://localhost:3000/static/js/bundle.js:3235:19)
at testStringCoercion (http://localhost:3000/static/js/bundle.js:9547:17)
at checkAttributeStringCoercion (http://localhost:3000/static/js/bundle.js:9553:18)
at setValueForProperty (http://localhost:3000/static/js/bundle.js:10122:15)
at setInitialDOMProperties (http://localhost:3000/static/js/bundle.js:17860:11)
at setInitialProperties (http://localhost:3000/static/js/bundle.js:18035:7)
at finalizeInitialChildren (http://localhost:3000/static/js/bundle.js:18915:7)
at completeWork (http://localhost:3000/static/js/bundle.js:28527:21)
Please help
Hello,
I've been looking around for a fix to an issue others seem to be having regarding an error that states the imgurl is undefined. I tried different resolutions, the top one i tried involved changing the image schema name to imgUrl since we were previously using duplicate names as well as implemente new line of code: .
instead of:
I am still getting this error: ERROR Cannot read properties of undefined (reading 'asset') TypeError: Cannot read properties of undefined (reading 'asset') at Testimonial (http://localhost:3000/static/js/bundle.js:1566:100) at renderWithHooks (http://localhost:3000/static/js/bundle.js:23438:22) at updateFunctionComponent (http://localhost:3000/static/js/bundle.js:26318:24) at beginWork (http://localhost:3000/static/js/bundle.js:28030:20) at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:13034:18) at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:13078:20) at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:13135:35) at beginWork$1 (http://localhost:3000/static/js/bundle.js:32999:11) at performUnitOfWork (http://localhost:3000/static/js/bundle.js:32247:16) at workLoopSync (http://localhost:3000/static/js/bundle.js:32170:9) ERROR Cannot read properties of undefined (reading 'asset') TypeError: Cannot read properties of undefined (reading 'asset') at Testimonial (http://localhost:3000/static/js/bundle.js:1566:100) at renderWithHooks (http://localhost:3000/static/js/bundle.js:23438:22) at updateFunctionComponent (http://localhost:3000/static/js/bundle.js:26318:24) at beginWork (http://localhost:3000/static/js/bundle.js:28030:20) at beginWork$1 (http://localhost:3000/static/js/bundle.js:32977:18) at performUnitOfWork (http://localhost:3000/static/js/bundle.js:32247:16) at workLoopSync (http://localhost:3000/static/js/bundle.js:32170:9) at renderRootSync (http://localhost:3000/static/js/bundle.js:32143:11) at performSyncWorkOnRoot (http://localhost:3000/static/js/bundle.js:31835:24) at flushSyncCallbacks (http://localhost:3000/static/js/bundle.js:19871:26)