We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.7.11
codesandbox.io
const style = useCssModule() console.log(style.someClass) // undefined // ... <style module lang="css"> .someClass { background: pink; } </style>
style object should contain defined class names
style object is empty.
In console: [Vue warn]: Current instance does not have CSS module named "$style"
I checked https://github.com/vuejs/core/blob/v2-compat/packages/runtime-dom/src/helpers/useCssModule.ts which uses getCurrentInstance, but on vue 2.7 getCurrentInstance returns { proxy: Vue }. Maybe that's something else :p
getCurrentInstance
{ proxy: Vue }
The text was updated successfully, but these errors were encountered:
I believe this is the same issue as #12822.
Sorry, something went wrong.
Seems so, I didn't search well enough :(
Let's close this and track it in #12822 instead.
No branches or pull requests
Version
2.7.11
Reproduction link
codesandbox.io
Steps to reproduce
What is expected?
style object should contain defined class names
What is actually happening?
style object is empty.
In console: [Vue warn]: Current instance does not have CSS module named "$style"
I checked https://github.com/vuejs/core/blob/v2-compat/packages/runtime-dom/src/helpers/useCssModule.ts which uses
getCurrentInstance
, but on vue 2.7getCurrentInstance
returns{ proxy: Vue }
.Maybe that's something else :p
The text was updated successfully, but these errors were encountered: