Hi @vishalnarkhede (last time this evening I promise 😄 )
When trying to run the first bid of the tutorial I have been dealing with an issue:
TypeError: imageProp.includes is not a function. (In 'imageProp.includes(randomImageBaseUrl)', 'imageProp.includes' is undefined)
The error occurs in the Avatar component when trying to evaluate some logic in the source part of the Image. This is where it precisely happens
It seems like the imageProp contains an object {default: "some url"} instead of the expected string (url) which results in this error.
We can fix it by simply using imageProp.default see gist of fixed file.
I strongly feel this is not the culprit or where it should be fixed. Otherwise, it will break globally.
This probably has to do with how the prop is being passed by parent elements in this specific tutorial?
Any ideas?
Hi @vishalnarkhede (last time this evening I promise 😄 )
When trying to run the first bid of the tutorial I have been dealing with an issue:
TypeError: imageProp.includes is not a function. (In 'imageProp.includes(randomImageBaseUrl)', 'imageProp.includes' is undefined)The error occurs in the Avatar component when trying to evaluate some logic in the source part of the Image. This is where it precisely happens
It seems like the imageProp contains an object
{default: "some url"}instead of the expected string (url) which results in this error.We can fix it by simply using imageProp.default see gist of fixed file.
I strongly feel this is not the culprit or where it should be fixed. Otherwise, it will break globally.
This probably has to do with how the prop is being passed by parent elements in this specific tutorial?
Any ideas?