eslint ts(2614) error occurs when using css module #10976
Unanswered
Mr-Nobody-li
asked this question in
Q&A
Replies: 1 comment
-
update your npm install -D typescript-plugin-css-modules |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
eslint ts(2614) error
Module '"*.module.scss"' has no exported member 'xxx'
occurs when using css modulehow to reslove that ?
I am using
css module
to provide class for my tsx code. This is my vite.config.ts.You can see that I have configured
localsConvention: 'camelCaseOnly'
to usetree-shaking
This is my .vue file. I imported the class declared in .module.css file
Then I got an error report from the ts (by the way, the code works, just got a ts error)
Beta Was this translation helpful? Give feedback.
All reactions