Today I tried to restart some development work by going through the new TS Templates tutorial (https://github.com/NevinAF/bga-ts-templ ... s/index.md).
When I got to item 3 of step 2, running the init script, I encountered the following:
Not sure if it is related, but a few other things were suspicious: I tried running the game following the directions in step 1 part 5, and the table didn't load (it was stuck on "Opening the game box.."). Also, there was no <gamename>.game.php file and the <gamename>.js file looked very different from what it used to (which might be expected, but could explain why the game wouldn't run?)
Any suggestions?
When I got to item 3 of step 2, running the init script, I encountered the following:
Code: Select all
...
Running build commands:
Game States: 'gamestates.jsonc' => 'states.inc.php', '.action.php', [gamestates.d.ts]
Game Statistics: stats.jsonc => stats.json
Game Options: gameoptions.jsonc => gameoptions.json
Game Preferences: gamepreferences.jsonc => gamepreferences.json
Game Infos: gameinfos.jsonc => gameinfos.inc.php
Typescript compiler: client/define.ts => knightsknaves.js
error TS2688: Cannot find type definition file for 'bga-ts-template'.
The file is in the program because:
Entry point of type library 'bga-ts-template' specified in compilerOptions
source/client/tsconfig.json:30:14
30 "types": [ "bga-ts-template" ], // Includes all non-module types which are on HTML script tags.
~~~~~~~~~~~~~~~~~
File is entry point of type library specified here.
Found 1 error.
Command failed: npx tsc -p source/client --outFile knightsknaves.js
Command failed: npx bga-build
Any suggestions?