You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is another one on v1. It seems that the type generation that runs during astro check doesn't include local collections. In my case I'm only using a local collection, so that means the icon type gets gets generated as export type Icon = never;. For now I've removed the /// <reference path="../.astro/icon.d.ts" /> but that obviously also means removing some type-safety. I'm afraid I'm not familiar enough with vite plugins to be able to submit a PR for this, but if a reproduction would be helpful then I can put something together for that.
Thanks
The text was updated successfully, but these errors were encountered:
Thank you for filing this issue! It seems like this is a regression in the type generation. I will get a fix in for this! If you can submit a reproduction that would be awesome! I was able to run locally and not have issues. I did have to reload my vscode window though.
This is another one on v1. It seems that the type generation that runs during
astro check
doesn't include local collections. In my case I'm only using a local collection, so that means the icon type gets gets generated asexport type Icon = never;
. For now I've removed the/// <reference path="../.astro/icon.d.ts" />
but that obviously also means removing some type-safety. I'm afraid I'm not familiar enough with vite plugins to be able to submit a PR for this, but if a reproduction would be helpful then I can put something together for that.Thanks
The text was updated successfully, but these errors were encountered: