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
A component with a specific type Props definition cannot be rendered. There's an error in parsing the file, which i suspect is because the type is formatted on multiple lines.
What version of
astro
are you using?2.8.0
Are you using an SSR adapter? If so, which one?
no
What package manager are you using?
npm
What operating system are you using?
mac
What browser are you using?
chrome
Describe the Bug
Problem statement
A component with a specific
type Props
definition cannot be rendered. There's an error in parsing the file, which i suspect is because the type is formatted on multiple lines.Usecase
The type which makes it fail in my usecase is:
...which prettier refactor as:
and gives the following:
Proofs
vim
and force back the type to be on one line, the error disappears.// prettier-ignore
above the type as a oneliner, the error disappearsWhat's the expected result?
We should not have issue with types being defined on multiple lines.
Link to Minimal Reproducible Example
https://codesandbox.io/p/sandbox/wizardly-sanderson-6ckszp
Participation
The text was updated successfully, but these errors were encountered: