-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
🐛 BUG: Vue types imported from monorepo package are not regonized #674
Comments
Any chance you could share a reproduction? |
You should be able reproduce issue here https://github.com/minht11/astro-monorepo-types-issue |
I installed volar extension to see virtual files for vue components in design-system package and they are empty, because of this line language-tools/packages/language-server/src/core/utils.ts Lines 17 to 23 in 7e5ccb7
As far as I understand astro resolves entry point for design-system not for site package, it doesn't find In fact if I add |
@Princesseuh Just found my way here through Google. Could you comment on the state of support for TSC project references in On a more general note, it'd be great if the docs went into a bit more detail on what |
I don't know exactly the features that are supported, |
I see, thank you! The thing is that |
If I file a bug report, I suppose I should file it here in this repo then? |
I think the issue is ultimately upstream, but you may fill it here for convenience and I'll report it upstream (either way, I'm a maintainer of both projects so...)
|
Describe the Bug
I have monorepo, with two packages one is vue components and other regular astro site. I use project references and so on. Importing regular ts/tsx files inside astro pages work as expected, but when I try importing any of my vue components, types are not resolved correctly. If i reexport vue components to index.ts and then import that, it shows that such export exists but types are empty. Actual vue component runs, just types are wrong.
Semi related to #649 but I don't do any bundling/dts emit so it is bit different.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: