When running npx tsc, I encountered the following error:
[JSProcess][Log] [tsc] [2J�[3J�[H13:52:26 - Starting compilation in watch mode...
[JSProcess][Log] [tsc] error TS2688: Cannot find type definition file for 'gdscript'.
[JSProcess][Log] [tsc] The file is in the program because:
[JSProcess][Log] [tsc] Entry point for implicit type library 'gdscript'
[JSProcess][Log] [tsc] 13:52:27 - Found 1 error. Watching for file changes.
[jsb][Debug] a stub script loaded which does not contain a GodotJS class res://...
My class inherits from Control (or its grandparent class is Control), while other classes that extend the Node class compile without issues.
How should I fix this? Thanks.
When running npx tsc, I encountered the following error:
[JSProcess][Log] [tsc] [2J�[3J�[H13:52:26 - Starting compilation in watch mode...
[JSProcess][Log] [tsc] error TS2688: Cannot find type definition file for 'gdscript'.
[JSProcess][Log] [tsc] The file is in the program because:
[JSProcess][Log] [tsc] Entry point for implicit type library 'gdscript'
[JSProcess][Log] [tsc] 13:52:27 - Found 1 error. Watching for file changes.
[jsb][Debug] a stub script loaded which does not contain a GodotJS class res://...
My class inherits from Control (or its grandparent class is Control), while other classes that extend the Node class compile without issues.
How should I fix this? Thanks.