Skip to content

npx tsc error #229

Description

@519389812

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions