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

【Version 12】scss load error #42166

Closed
shrek-kurata opened this issue May 19, 2021 · 2 comments
Closed

【Version 12】scss load error #42166

shrek-kurata opened this issue May 19, 2021 · 2 comments

Comments

@shrek-kurata
Copy link

shrek-kurata commented May 19, 2021

Bug Report

Affected Package

https://github.com/ryuseikurata/ng-v12-error/blob/main/package.json

Is this a regression?

Yes, the previous version in which this bug was not present was no error.

Description

  • As I command ng s --prod ,there is an error like the below.
Error: ~/Test/v12/assets/scss/colors.scss:1:5: Unknown word
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser
  • As I command ng s --optimization=false、 there is no error.
  • As I remove comment-out in colors.scss, there is no error

Minimal Reproduction

https://github.com/ryuseikurata/ng-v12-error

Exception or Error

Error: ~/Test/v12/assets/scss/colors.scss:1:5: Unknown word
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser

Your Environment

Angular Version:
https://github.com/ryuseikurata/ng-v12-error/blob/main/package.json

Anything else relevant?

This repository is only used for the reproduction of error.

The repository I usually develop has the other errors which I don't know the cause

like below the code.

Error: Expected a pseudo-class or pseudo-element.

Error: Expected a pseudo-class or pseudo-element.

Error: Unexpected '/'. Escaping special characters with \ may help.

Error: Unexpected '/'. Escaping special characters with \ may help.

Error: Unexpected '/'. Escaping special characters with \ may help.
@shrek-kurata shrek-kurata changed the title 【Version 12】scss comment out error 【Version 12】scss load error May 19, 2021
@petebacondarwin
Copy link
Member

Duplicate of angular/angular-cli#20812

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants