Skip to content

cannot find type definition file for 'gdscript' #112

@Cattn

Description

@Cattn

I'm trying to draw a simple raycast with RayCast2D, but whenever I run npx tsc I always get this error

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'

I noticed in generated/gdscript.ts there is this:

import {  } from "gdscript";

Which is the source of that error, as it says Cannot find module 'gdscript' or its corresponding type declarations.ts(2307)

And the typings/gdscript folder is empty.

I'm relatively new to godot, so I apologize if I missed something.

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