Skip to content

Problem using CSS Modules #66

@chanon

Description

@chanon

Using vue-class-component, I can not reference CSS Module css class name using $style.className in the template.

See reproduction:
https://github.com/chanon/ts-vue-hmr/blob/master/src/components/Hello.vue#L13

It creates a runtime error in the browser:
image

I tried to create property / data declaration of $style but I could not get it to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions