Closed
Description
-
enable
"goToDefinition": true
intsconfig.json
-
create a sample
index.scss
file look like this:
.classA {
height: 100%;
&>.classB {
width: 100%;
}
}
-
in a typescript file, import the scss as
import css from './index.scss'
-
after import, only
css.classA
is valid. accessingcss.classB
gives
Property 'classB' does not exist on type 'typeof import("???/index.scss")'
- However, turning
goToDefinition
off makesclassB
valid, but I would like to keep it on and still be able to usecss.classB