Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown word error occurs on double slashed comments #49

Open
bertanyaman opened this issue Jul 2, 2018 · 1 comment
Open

Unknown word error occurs on double slashed comments #49

bertanyaman opened this issue Jul 2, 2018 · 1 comment

Comments

@bertanyaman
Copy link

bertanyaman commented Jul 2, 2018

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
Copy link

skovy commented Feb 17, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants