Closed www159 closed 3 years ago
It looks like extension didn't treat CommonJS differently from ESModule cc @clinyong
But i am really interested in why you use require
not import
?
@www159 Please use import here
import * as styles from './index.module.less'
Feel free to reopen the issue if you have any other problem.
as I use it as suggestion, some trouble things descend. like below:
but when serving:
however, as I try to use
styles.defaut.<cssName>
, it does work and I lose the intellisense in this way what' wrong ::sad