Skip to content

Syntax Error if @import was commented #625

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

Closed
bezenson opened this issue Oct 28, 2017 · 0 comments
Closed

Syntax Error if @import was commented #625

bezenson opened this issue Oct 28, 2017 · 0 comments

Comments

@bezenson
Copy link

Hello! If found that it is impossible to comment an import.

My code:

@import 'node_modules/bootstrap/scss/variables';
@import 'node_modules/bootstrap/scss/mixins';
//@import 'node_modules/bootstrap/scss/root';

When I run build - I am getting an error:

ERROR in ./node_modules/css-loader?{"minimize":true,"url":false}!./node_modules/sass-loader/lib/loader.js!./node_modules/postcss-loader/lib!./src/scss/index.scss
Module build failed: Syntax Error

(21:1) Unknown word

  19 | @import 'node_modules/bootstrap/scss/variables';
  20 | @import 'node_modules/bootstrap/scss/mixins';
> 21 | //@import 'node_modules/bootstrap/scss/root';
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

1 participant