-
Notifications
You must be signed in to change notification settings - Fork 982
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
Cannot find type definition file for 'types'. #1400
Comments
Aside from the notification in the I'll try to find why my IDE is displaying this "issue". |
Hi @fveauvy welcome to Redwood! And a strange issue indeed. @aldonline curious if you have any ideas here especially regarding how to get more information out of the VS Code output, e.g. where is "types" coming from? |
Hello @thedavidprice ! Thanks for the warm welcome. I'll try to investigate this issue myself this week, as I'd like to contribute to this awesome project :) |
Rad! We'd welcome the help. There's some good "getting started as a contributor" info in this issue. If you're interested in helping move TS support forward, here's the Project Board with Tracking issues.
And PR #1312 needs to be split into smaller PRs (see this comment). It might be a great place to start to ask if you could help move one of the specific items forward. |
I think I found what was causing my issue. In my case, the errors occurred because my package.json specified a package named |
Ah, rodger that. Doesn't look like there's a workaround for now, correct? |
I think I found two workarounds by tweaking the tsconfig.json file a bit. But please keep in mind that I'm certainly not a typescript wizard and you should took it with a pinch of salt 😄 Let's say I add
1. Add a
|
could we keep this open until a canonical solution is found ? FWIW the "Modify the While on it, why doesn't |
I wanted to try using typescript on a newly created Redwood project 0.20.0. I followed the guidance from the typescript page doc and created a page and a component (the component has been created with the
--ts
option).I noticed this issue in the
Problems
tab of vs code.The text was updated successfully, but these errors were encountered: