-
Notifications
You must be signed in to change notification settings - Fork 51
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
Get Cannot find module 'astro-seo' or its corresponding type declarations.ts(2307)
#49
Comments
Same here. I am adding this line to 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? |
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 |
Using Zed editor and have the same issue, but solve it by adding
to |
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!
The text was updated successfully, but these errors were encountered: