Open LushawnDev opened 1 year ago
Same here. I am adding this line to env.d.ts
as another workaround:
declare module 'astro-seo'
But it would be better to have types out of the box.
Hey @LushawnDev and @madrus. I can't seem to reproduce this in a newly created astro project with astro 1.9.0, astro-seo 0.7.0 and TS rules set to "strictest". Can you maybe provide any steps to reproduce?
Same here. I am adding this line to
env.d.ts
as another workaround:declare module 'astro-seo'
But it would be better to have types out of the box.
That fixed the warning above, but it fails on Build (just installed a fresh v2.0 Astro)
Try restarting TS Server or VSCode, that fixed it for me. I didn't have to add any new declarations in env.d.ts
.
Using Zed editor and have the same issue, but solve it by adding
declare module 'astro-seo'
to env.d.ts
Hey, love your Astro integration! Does it/can it support typescript out of the box or by doing
npm install @types/astro-seo
? I get the following error when importing it into a page like so:Gives:
Cannot find module 'astro-seo' or its corresponding type declarations.ts(2307)
I am fairly new to typescript, but pretty sure it can be added to the DefinitelyTyped repo, it's just a bit past my expertise how to.
At the moment I am supressing the typescript warning by using
// @ts-ignore
Thanks for your contributions!