Search code examples
reactjstypescriptdebuggingsass

Getting errors in scss file like Expression expected.ts(1109)


I am getting errors in all scss file like these

  1. Expression expected.ts(1109)
  2. ',' expected.ts(1005)
  3. Even for varaible declaration like these $gray-100-dark: #1b1b29;
    Cannot find name '$gray'

Working on a react project where TS are used


Solution

  • Filetype configuration was wrongly done in VS we need to set the right configuration it was TS before modified to SCSS now all the errors are gone