text does not show up in game view

DISCLAIMER: I am new to unity, and I don’t know too much about it.
I used text mesh pro and the scene view works fine but the text does not show up in-game view, even the textbox that I made wasn’t showing up, so I made a sprite with the textbox outside of the canvas and it worked just fine, so I think it’s a problem is related to the canvas or the render settings.
why is there this error and how can I solve it?
PS: I don’t speak English so this question is not grammaly perfect.

I don’t use TextMesh Pro but if I was to, I would take a look at this official tutorial:

Hope that helps