Skip to content

Astro import using wrong types #62

@nblackburn

Description

@nblackburn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions