Unity can't access the mesh renderere of intncieted mesh

So I use my class to create a quad mesh(on ‘Start’ it generate without issue), while
If I generate my mesh on an instantiated object unity doesn’t seem to render the mesh correctly and as well if I try to access the MeshRenderer component, even if is there(as you can tell from the picture) I got a “There is no ‘MeshRenderer’ attached to the “0,0” game object” error…any idea why ?

I’m on the 2019.1.1f1

The error above says you’re trying to add a second MeshRenderer to the object and it already has one.

Hi Kurt, thanks for replying, the error shown was to show that even tho there is already a mesh renderer the script didn’t see it.

BTW I figured out why my mesh was dark(like there is no material) while creating the mesh I used a Y scale of 0 and this result in a visual error.

Well yep, that will cause a problem. I have done this exact thing. Glad you found it. Now you mention it, I see it in the above screenshot.