godotjs / godotjs/GodotJS

cannot find type definition file for 'gdscript'

Open
#112 1 comment 0 reactions 0 assignees Claimed by @github-actions View on GitHub
question
Dominant language
C
Stars
765
Forks
46
PR merge metrics
No merged PRs in 30d

Description

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.

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.