Skip to content
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

Current instance does not have CSS module named "$style" #12822

Closed
mittalyashu opened this issue Oct 12, 2022 · 1 comment
Closed

Current instance does not have CSS module named "$style" #12822

mittalyashu opened this issue Oct 12, 2022 · 1 comment

Comments

@mittalyashu
Copy link

Version

2.7.11

Reproduction link

codesandbox.io

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.

CleanShot 2022-10-12 at 15 02 18@2x

What is actually happening?

It's throwing an error in console.

Current instance does not have CSS module named "$style"

CleanShot 2022-10-12 at 15 01 44@2x

@skirtles-code
Copy link

I've tested this locally with a new project (npm init vue@2) and I'm seeing the same problem. 2.7.10 works fine, 2.7.11 gives an error.

$style is still available in the template, so I assume it's a timing problem around when $style is populated relative to when setup is called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants