Quramy / typed-css-modules

Creates .d.ts files from CSS Modules .css files
MIT License
1.03k stars 68 forks source link

Unknown word error occurs on double slashed comments #49

Open bertanyaman opened 6 years ago

bertanyaman commented 6 years ago

Hello,

I am trying to parse my sass files but when I insert a comment with double slash or a javascript file reference for intellisense in Visual Studio 2017 I am getting the error I mentioned below.

/ Comment that working well / // This comment will couse an error

My main objective is use the reference paths actually. Comments are not that important I can use the /**/ syntax anyways.

tcm -o lib -p ./*/.scss src [Error] CssSyntaxError: C:\C:\src\Component\assets\style.scss:1:1: Unknown word You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser

1 | /// <reference path="../../stylesheets/main.scss" / > .. | ^ 2 | 3 | @import 'mainstyles';`

skovy commented 5 years ago

@bertanyaman I also recently ran into this issue. If you're looking to support SASS consider looking at typed-scss-modules as well 👍