astro-seo icon indicating copy to clipboard operation
astro-seo copied to clipboard

Import SEO component doesn't pass astro check

Open pablolazarofever opened this issue 3 years ago • 0 comments

In a fresh and empty project (with astro-seo version ^0.5.0 installed), running astro check will fail if you include astro-seo as the documentation states.

---
import { SEO } from "astro-seo";
---
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width" />

		<SEO
			title="A Very Descriptive Title"
			description="A heavily optimized description full of well-researched keywords." />
	</head>
	<body>
		<h1>Astro</h1>
	</body>
</html>
> @example/[email protected] check
> astro check

src/pages/index.astro:1:20 - Cannot find module 'astro-seo' or its corresponding type declarations.
1  import { SEO } from "astro-seo";
                       ~~~~~~~~~~~

Found 1 errors.

pablolazarofever avatar Jun 16 '22 13:06 pablolazarofever