-
Notifications
You must be signed in to change notification settings - Fork 432
Problem using CSS Modules #66
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
Labels
Comments
For reference av-ts does not have this problem. |
Move to vuejs/vue#4976 |
Hey @chanon looks like the team is working on this but I had the same issue you've mentioned. I show a workaround here: vuejs/vue-loader#540 |
As the original issue is fixed. I still get error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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:

I tried to create property / data declaration of $style but I could not get it to work.
The text was updated successfully, but these errors were encountered: