Is there a solution to the error prompted in TS? There is no problem using an online editor
The local code uses the following version
you need to install @babylonjs/materials
@babylonjs/materials