-
Notifications
You must be signed in to change notification settings - Fork 9
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
Using Vercel speed insights in Astro #54
Comments
Hi, I'm having the same issue. It currently does not work with Apparently this was fixed in #41, but I'm still experiencing the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, I installed the @vercel/speed-insights package with npm and tried to add the component to my BaseHead.astro:
But when I add it, the import gets linted and says "Cannot find module '@vercel/speed-insights/astro' or its corresponding type declarations."
This is my package.json:
How do I fix it? I followed Vercel's guide exactly and there's an issue.
I tried to see if I could import SpeedInsights from "@vercel/speed-insights";
And though the linting goes away on that line, I now get linted on the component line:
<SpeedInsights />
_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.ts(2604)
(alias) const SpeedInsights: {
injectSpeedInsights: typeof injectSpeedInsights;
computeRoute: typeof computeRoute;
}
import SpeedInsights_
A friend on Discord says that looking at the package, it looks like it's not packaged correctly, the types point to a file that doesn't exist.
The text was updated successfully, but these errors were encountered: