Open charlie-hadden opened 1 year ago
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.
Sure thing - I'll get a reproduction put together for you shortly.
I've put together a small reproduction of this issue here: https://github.com/charlie-hadden/astro-icon-reproduction
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