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
[error] src/components/atoms/Input.astro: Error: Unhandled node type "frontmatter"!
[error] at Object.print (/Users/calebjasik-defined/Github/defined.net/www/node_modules/prettier-plugin-astro/dist/index.js:448:19)
[error] at callPluginPrintFunction (/Users/calebjasik-defined/Github/defined.net/www/node_modules/prettier/index.js:8447:26)
[error] at mainPrintInternal (/Users/calebjasik-defined/Github/defined.net/www/node_modules/prettier/index.js:8396:22)
[error] at mainPrint (/Users/calebjasik-defined/Github/defined.net/www/node_modules/prettier/index.js:8383:18)
[error] at /Users/calebjasik-defined/Github/defined.net/www/node_modules/prettier/index.js:8238:27
[error] at AstPath.each (/Users/calebjasik-defined/Github/defined.net/www/node_modules/prettier/index.js:8230:11)
[error] at AstPath.map (/Users/calebjasik-defined/Github/defined.net/www/node_modules/prettier/index.js:8237:14)
[error] at Object.print (/Users/calebjasik-defined/Github/defined.net/www/node_modules/prettier-plugin-astro/dist/index.js:275:48)
[error] at callPluginPrintFunction (/Users/calebjasik-defined/Github/defined.net/www/node_modules/prettier/index.js:8447:26)
[error] at mainPrintInternal (/Users/calebjasik-defined/Github/defined.net/www/node_modules/prettier/index.js:8396:22)
The bug here discovered by @antonyfaris is that I'm trying to bind to class which is a reserved name, so parsing fails.
I would prefer there was a clearer error message such as "error: variable cannot be bound to class which is a reserved name" similar to how the TS parser works: prettier playground link from @antonyfaris
Proposed Solution
Possible solutions
Pass through error messages from child parsers of the plugin
Alternatives considered
Risks, downsides, and/or tradeoffs
Open Questions
Detailed Design
No response
Help make it happen!
I am willing to submit a PR to implement this change.
I am willing to submit a PR to implement this change, but would need some guidance.
I am not willing to submit a PR to implement this change.
The text was updated successfully, but these errors were encountered:
Background & Motivation
I want to get a clearer output from this plugin when it is fed:
in
v0.1.0-next.4
I get the output:similar to
0.1.0-next.0
in #165.The bug here discovered by @antonyfaris is that I'm trying to bind to
class
which is a reserved name, so parsing fails.I would prefer there was a clearer error message such as "error: variable cannot be bound to
class
which is a reserved name" similar to how the TS parser works: prettier playground link from @antonyfarisProposed Solution
Possible solutions
Pass through error messages from child parsers of the plugin
Alternatives considered
Risks, downsides, and/or tradeoffs
Open Questions
Detailed Design
No response
Help make it happen!
The text was updated successfully, but these errors were encountered: