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

This issue has been created since 2022-10-12.

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 wrote this answer on 2022-10-15

I've tested this locally with a new project (npm init [email protected]) 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.

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-12-10
Star Count 201155
Watcher Count 6070
Fork Count 33134
Issue Count 595

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
[FR] Add Step Validation 1 2021-06-01 2022-07-17
Conditional step animation issue 1 2021-04-12 2022-07-17
On 'Enter' the wizard gets to the next step 2 2020-12-23 2022-11-04
PoissonRecon exit with: [ERROR] Src/FEMTree.IsoSurface.specialized.inl (Line 1424) 2 2022-04-19 2022-07-18
Activation type _hard_swish is is not supported yet. 24 2021-04-07 2022-10-09
Random template functions 1 2022-02-11 2022-12-05
Node Name Cannot be NA 1 2021-01-08 2022-09-09
[FEATURE REQUEST] Add Mars flag 1 2022-03-17 2022-11-18
Use newline CR to put on the next line 4 2020-03-01 2022-09-01
Building master for Spark 3.0 has failing tests 1 2021-01-06 2022-09-26
DeepRec supports multiple evaluator 0 2022-07-10 2022-11-07
Topics xref with keyref attribute is generating duplicate topic while publishing xhtml output 7 2022-06-10 2022-07-23
Mailing list archive unavailable 3 2021-11-02 2022-11-23
HiGHS solver integration 9 2022-03-22 2022-11-26
error with Creator ActivityScreen 1 2021-02-22 2022-11-18
Incoherence of vl usage in operation section 4 2022-09-13 2022-12-02
[CascaderSelect]CascaderSelect组件ts问题 0 2021-09-23 2022-08-14
System.NullReferenceException calling ReInitializeAllTextboxes() 5 2021-03-26 2022-11-19
It is easy to miss the premium warning on tables when it is in the last row. 3 2021-10-19 2022-12-09
Tags API appears to be missing? 1 2022-07-15 2022-11-30
Adding attributes to the msg 7 2021-12-14 2022-11-18
Add feature to enable mutual TLS 0 2021-02-04 2022-11-26
负载均衡的一点想法, 1 2019-02-20 2022-01-21
[BUG] Treesitter highlighting does not work for latex code blocks 3 2021-09-08 2022-11-07
Fixing deprecated code within virtual env 1 2022-01-16 2022-11-26
API call fails when deleting app with multiple volumes 2 2021-10-27 2022-11-08
npm package shows build failed 1 2020-09-02 2022-11-20
Update Measurement Chart to have daily, weekly, monthly and yearly 3 2021-01-18 2022-11-14
Testing Templates 0 2021-08-11 2022-01-17
How to determine the corresponding original image items in cluster_epoch_xx.npy file 1 2021-03-10 2022-11-27
How to update the nginx configuration file synchronously when deleting hostname 0 2021-02-05 2022-11-30
Cannot run esphome in dev container 4 2021-12-30 2022-10-01
Unable to create AWX Instance: [digital envelope routines: EVP_DigestInit_ex] disabled for FIPS 2 2022-11-14 2022-12-02
Elections September 2021 0 2021-09-08 2022-12-08
Trace transactions across isolates 3 2022-01-26 2022-12-01
Use finite state machine parser for user-config 0 2021-06-14 2022-11-16
Non-ascii characters in file names reported as warnings 1 2022-12-01 2022-12-03
Google Play: com.alibaba.aliexpresshd 1 2022-06-27 2022-09-21
Google Play: com.momo.mobile.shoppingv2.android 6 2022-06-27 2022-09-16
I can't open any drawio files on diagrams.net 3 2022-11-23 2022-12-10
Fix tracePage browser crash 1 2021-09-30 2022-12-05
Moment.js vulnerabile 5 2022-10-27 2022-11-29
Missing 22000 SDK era APIs (e.g. ioringapi.h) 1 2021-09-19 2022-10-28
[QUESTION] Code Signing Key Rotation 2 2021-03-09 2022-12-04
Add node 16.13.0 images 22 2021-10-07 2022-11-18
Code coverage ignored 0 2021-09-10 2022-11-18
FlexItem can not acces 0 2021-06-27 2022-12-02
build welcome screen layout 1 2020-12-02 2022-02-05
Assistance With Writing Golang Equivalent 1 2020-01-24 2022-11-23
0x Swaps should compare against CoinGecko for bad prices 0 2022-03-16 2022-10-15