### Version 2.7.11 ### Reproduction link [codesandbox.io](https://codesandbox.io/s/current-instance-does-not-have-css-module-llfb0u) ### Steps to reproduce Using CSS modules to define styles in a component. ### What is expected? It should not throw the error. Reverting back to `v2.7.10`, it logs the actual CSS module class. <img width="319" alt="CleanShot 2022-10-12 at 15 02 18@2x" src="https://user-images.githubusercontent.com/29014463/195306648-25ece747-2034-459d-96d0-974eb6868111.png"> ### What is actually happening? It's throwing an error in console. `Current instance does not have CSS module named "$style"` <img width="512" alt="CleanShot 2022-10-12 at 15 01 44@2x" src="https://user-images.githubusercontent.com/29014463/195306444-50b19bb6-2796-4c38-bfa2-117a0e5a9dda.png"> <!-- generated by vue-issues. DO NOT REMOVE -->