Skip to content

Better error message on invalid ref names, or allow ref names with dashes. #1613

Closed
@mhkeller

Description

@mhkeller

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 error Assigning 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 like this.refs.chart-container, which obviously isn't proper JavaScript. Here's the error in the REPL

screen shot 2018-07-24 at 10 48 26 pm

It 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions