-
Notifications
You must be signed in to change notification settings - Fork 12
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
Types are not being detected in v2 #63
Comments
Sorry about this looks like it is working correctly. Turns out I just didn't have it included in my tsconfig.json so it silently failed to load for some unknown reason. Typescript configuration is hard 😂 |
Tell me about it 😅 I prefer the Just double-checked in any case and Are the Types Wrong suggests that everything's fine:
|
Nice, I hadn't heard of publint before. I'll probably try use that on my projects too. Thanks for taking the time to reply, that error caused by not including the config file had me frustrated for a day before opening this. Annoyingly enough VSCode will happily tell you TS is running on the file, but give cryptic errors until it's included properly. |
What was not included in your |
The vite.config.ts file, had included subfolders but not root level ts files |
Ah thanks just arrived at the same conclusion :) |
It looks like in v2 the
exports
field in the package.json is missing meaning that not all configurations for tsconfig.json are supported.For example if you open up the react-express stackblitz, it compiles fine but
vavite
(and others admittedly) have red squiggly lines under them as the types cannot be found.Changing
node_modules/vavite/package.json
to be the following worked for me locally; (took inspiration from the package definition of vite but vavite needs to be different for some reason.My tsconfig.json relevant settings are;
The text was updated successfully, but these errors were encountered: