Skip to content
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

Astro import using wrong types #62

Open
nblackburn opened this issue Mar 12, 2024 · 1 comment
Open

Astro import using wrong types #62

nblackburn opened this issue Mar 12, 2024 · 1 comment

Comments

@nblackburn
Copy link

nblackburn commented Mar 12, 2024

I have been having issues integrating this library for a while now due to some issues in how types are being resolved, which doesn't play nicely with astro check. It looks like some attempts have been made to fix this, but sadly this issue still persists for me.

src/layouts/base.astro:89:10 - error ts(2604): Component 'SpeedInsights' is not a valid component.

If this is a Svelte or Vue component, it might have a syntax error that makes it impossible to parse.

89         <SpeedInsights />
            ~~~~~~~~~~~~~

I have noticed that the Astro version is missing from typesVersions and doesn't have a index.d.ts file, which appears to lead it to default back on index.d.ts under ./dist which is not an Astro component.

Related: #36 #54

@ViorelMocanu
Copy link

I'm having the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants