We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
15.4.0
https://see.below
...... <style module lang="scss"> .root { color: red; } </style>
Bar:
<template> <div :class="$style.root"> There should be black. </div> </template> <script> import GameCard from './GameCard.vue'; export default { extends: Foo }; </script> <style module lang="scss"> .root { color: black; } </style>
npm run serve
No error and the color is black.
TypeError: Cannot redefine property: $style
I think here should be:
Object.defineProperty(this, ${name}, { configurable: true, // ! get: function () { return cssModules[${name}] } })
The text was updated successfully, but these errors were encountered:
Thank you for your reporting! However, I could not reproduce it.
Can you provide minimum reproduction to us with repository please?
Sorry, something went wrong.
Thanks for reply. I send a pr for this, you can see the unit test.
oh, sorry. I'll try to see it later.
fix: css modules extends error (#1452)
082c6ea
fix #1449
Successfully merging a pull request may close this issue.
Version
15.4.0
Reproduction link
https://see.below
Steps to reproduce
Foo:
Bar:
npm run serve
.What is expected?
No error and the color is black.
What is actually happening?
TypeError: Cannot redefine property: $style
I think here should be:
The text was updated successfully, but these errors were encountered: