Skip to content

Unclosed curly brace in props - Error #6288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Kapsonfire-DE opened this issue May 3, 2021 · 1 comment · Fixed by #6612
Closed

Unclosed curly brace in props - Error #6288

Kapsonfire-DE opened this issue May 3, 2021 · 1 comment · Fixed by #6612

Comments

@Kapsonfire-DE
Copy link
Contributor

Kapsonfire-DE commented May 3, 2021

When a closing curly brace is missing inside property passed to a component the error message isnt very meaningful:

<Component2 test={{var:1} />

-> Unterminated regular expression (6:27)

Is it possible to make it to unterminated property value or something like this?

@Conduitry
Copy link
Member

The parser now returns a more helpful "Expected to close the attribute value with } (1:27)" error for this in 3.42.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants