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
path/to/template.astro:12:4 Error: Component 'MyComponent' 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.
11 <body>
12 <MyComponent />~~~~~~~~~~~
13 </body>
I believe this is an issue with the language tools rather than the compiler since this renders correctly with no errors or warnings.
TS reports the error both when running astro check and in the VS Code UI with the Astro extension installed.
Environment
Astro version: 1.6.8
VS Code extension version: 0.28.2
OS: Windows 11 2022H2
Describe the Bug
When using a pure HTML component in an Astro template, Typescript throws the following error:
I believe this is an issue with the language tools rather than the compiler since this renders correctly with no errors or warnings.
TS reports the error both when running
astro check
and in the VS Code UI with the Astro extension installed.Environment
Astro version: 1.6.8
VS Code extension version: 0.28.2
OS: Windows 11 2022H2
Steps to Reproduce
<div>Hello world</div>
npm start
The text was updated successfully, but these errors were encountered: