You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: