-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Better error message on invalid ref names, or allow ref names with dashes. #1613
Comments
Did some initial digging. The This is my first attempt at contributing to Svelte so let me know if this evaluation is incorrect, but we need to either
or
|
This was referenced Aug 5, 2018
Thanks @GarrettGeorge! |
Released @GarrettGeorge's fix in 2.9.11 — thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I like using ref names in my CSS so I'm often tempted to use dash-style names such as
ref:chart-container
. If I use a dash, though, I get a cryptic errorAssigning to rvalue
. This took me a little while to figure out what I was doing wrong but it's because I believe the compiler creates code likethis.refs.chart-container
, which obviously isn't proper JavaScript. Here's the error in the REPLIt would be a nice to have but I don't really care if I can't (or shouldn't) use dashed names for whatever reason. If the error message can be improved, though, that would be great!
The text was updated successfully, but these errors were encountered: