godotjs / godotjs/GodotJS

npx tsc error

Open
#229 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
765
Forks
46
PR merge metrics
No merged PRs in 30d

Description

When running npx tsc, I encountered the following error:
[JSProcess][Log] [tsc] [2J13: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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.