-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript: Could not find a declaration file for module "garfish" #649
Comments
Could you please help to propose an mr To add the relevant content configuration? I can't reproduce it |
I'm back at home & created a demo project in my home computer & still can reproduce the issue. Here's the repo: https://github.com/librz/reprod-garfish-ts-error Below is a video recording of what happened & how can it be fixed: reproduce_garfish_ts_error.mov |
Thanks for the feedback, I will fix the problem as soon as possible |
Upgrade to the latest version |
Describe the bug
Hi, I just tried out
Garfish
for the first time. When I was setting up the base app(vite + react + ts) usingGarfish
, I couldn't' get auto completion.Here's the message I got in VS Code:
When I navigate to
node_modules/garfish/package.json
,"types": "./index.d.ts"
existsSeems TS can find the type declaration file but refuse to use it.
I manually added
"types": "./index.d.ts"
underexports
and the TS error in VS Code is gone (no red underline anymore):However I still couldn't get auto completion when I do
Garfish.
. So I looked it up in the declaration file and realized it depends on@garfish/core
which has similar problem.So I manually added it again (this time to
node_modules/@garfish/core/package.json
):Auto completion is working (I have to restart VS Code though):
I suspect all the other
@garfish
dependencies have the same issue as well.Reproduction
TypeScript issue, please refer to bug description
Used Package Manager
npm
System Info
Validations
The text was updated successfully, but these errors were encountered: