The types file in the template project is so that you can have auto complete in VSC
Since you have playcanvas.d.ts file somewhere as well (given the error message in the first post), you can delete the global.d.ts file and it would be fine
I’m not sure where the playcanvas.d.ts file has come from in your project. When the template was originally created, types weren’t available so it was manually added to the template
It’s been imported to the project via node_modules. Playcanvas npm package contains types so when I run npm install in the template project, it downloads playcanvas.d.ts file too.
Hm, interesting. I wonder if VSC has changed since this template was made and it automatically picks up the types in the node modules now. Or now PlayCanvas NPM ships with the d.ts by default?