Shader to RGB node is not supported

Hello everyone!! thx for all the replys!

When I use the node: “shader to rgb” I receive an error that says that this node is not supported, it is fine I do not ask for it to be like that but if someone knows an alternative that I can continue using in the shader nodes it would be ideal

Really thanks!

Can u send a .blend example?