Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

invalid css in render function doesn't show error #117

Open
trafnar opened this issue Oct 13, 2021 · 0 comments
Open

invalid css in render function doesn't show error #117

trafnar opened this issue Oct 13, 2021 · 0 comments

Comments

@trafnar
Copy link
Contributor

trafnar commented Oct 13, 2021

extension v3.0.8
imba v2.0.0-alpha.175

If you mistakenly use a root-level css declaration within render, but outside self, there is an error in the terminal but not in the tooling. This is an easy mistake to make, and can be confusing to debug.

def render
    # this root-level css is not allowed oustide self within render, it produces an error
    # but the error is not shown in the tooling, making it hard to catch/understand/debug
    css bgc:red

    # this is allowed and works
    css .foo bgc:red

    <self>
    ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant