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
the packages/starlight folder, with the tsconfig.json from the root
the starlight starter project
and updated the package.json to link it locally.
But when I open the Hero component, I get these errors.
Is it possible that you are not compiling the project with tsc and therefore don't see these errors?
Or did I misconfigure something?
Is it best practice to use any type in Astro (because strong typing is too hard?), or is this a mistake?
[{
"resource": "/components/Hero.astro",
"owner": "_generated_diagnostic_collection_name_#0",
"code": "7031",
"severity": 8,
"message": "Binding element 'text' implicitly has an 'any' type.",
"source": "ts",
"startLineNumber": 53,
"startColumn": 22,
"endLineNumber": 53,
"endColumn": 26
},{
"resource": "/components/Hero.astro",
"owner": "_generated_diagnostic_collection_name_#0",
"code": "2322",
"severity": 8,
"message": "Type '{ \"set:html\": any; }' is not assignable to type 'IntrinsicAttributes & Props'.\n Type '{ \"set:html\": any; }' is missing the following properties from type 'Props': variant, link",
"source": "ts",
"startLineNumber": 54,
"startColumn": 8,
"endLineNumber": 54,
"endColumn": 20
}]
Link to Minimal Reproducible Example
N/A
Participation
I am willing to submit a pull request for this issue.
The text was updated successfully, but these errors were encountered:
Hi @erikschul, thanks for your patience on this one! I just took a quick look, but I’m not able to reproduce it. Going to assume it was maybe fixed in the meantime. Feel free to provide more information if this is still causing issues.
What version of
starlight
are you using?head
What version of
astro
are you using?N/A
What package manager are you using?
pnpm
What operating system are you using?
Linux
What browser are you using?
None
Describe the Bug
I created a pnpm workspace consisting of:
packages/starlight
folder, with thetsconfig.json
from the rootand updated the package.json to link it locally.
But when I open the Hero component, I get these errors.
Is it possible that you are not compiling the project with tsc and therefore don't see these errors?
Or did I misconfigure something?
Is it best practice to use
any
type in Astro (because strong typing is too hard?), or is this a mistake?Link to Minimal Reproducible Example
N/A
Participation
The text was updated successfully, but these errors were encountered: