Skip to content

Incorrect scss file name generated #13764

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
mwhitis opened this issue Feb 25, 2019 · 6 comments
Closed

Incorrect scss file name generated #13764

mwhitis opened this issue Feb 25, 2019 · 6 comments
Labels
needs: more info Reporter must clarify the issue

Comments

@mwhitis
Copy link

mwhitis commented Feb 25, 2019

🐞 Bug report

Command (mark with an x)

- [x] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

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

Has worked previously, but I don't know how long ago it regressed

Description

A clear and concise description of the problem...

Using cli 7.3.3

Generates src/styles.scss

Angular.json looking for src/styles.sass

🔬 Minimal Reproduction

ng new foo
Y to angular routing
Change Stylesheet to SASS

ng serve

🔥 Exception or Error




ERROR in multi ./src/styles.sass
Module not found: Error: Can't resolve '/Users/mwhitis/git/mwhitis/foo/src/styles.sass' in '/Users/m420498/git/mwhitis/foo'
ℹ 「wdm」: Failed to compile.

🌍 Your Environment




     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 7.3.3
Node: 11.10.0
OS: darwin x64
Angular: 7.2.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.13.3
@angular-devkit/build-angular     0.13.3
@angular-devkit/build-optimizer   0.13.3
@angular-devkit/build-webpack     0.13.3
@angular-devkit/core              7.3.3
@angular-devkit/schematics        7.3.3
@angular/cli                      7.3.3
@ngtools/webpack                  7.3.3
@schematics/angular               7.3.3
@schematics/update                0.13.3
rxjs                              6.3.3
typescript                        3.2.4
webpack                           4.29.0

Anything else relevant?

@mwhitis
Copy link
Author

mwhitis commented Feb 25, 2019

Added generated angular.json and screenshot of src folder

screen shot 2019-02-25 at 9 50 19 am

angular.json.txt

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Feb 25, 2019

I suspect that your global Angular CLI version is not the latest.

Can you install it and try to generate the project again?

npm install @angular/cli@latest -g

As this should have been solved by #13552

@mwhitis
Copy link
Author

mwhitis commented Feb 25, 2019

Updated with the above command, and still getting the error.

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Feb 26, 2019

Hi, I looked into this and I was unable to reproduce the reported issue with the latest CLI.

npm install @angular/cli@latest -g
ng new foo
choose routing & sass
grep -r "styles" angular.json
            "styles": [
              "src/styles.scss"
            "styles": [
              "src/styles.scss"

Did you generate the project again after the update?

@alan-agius4 alan-agius4 added the needs: more info Reporter must clarify the issue label Feb 26, 2019
@alan-agius4
Copy link
Collaborator

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.

If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.

@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 Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: more info Reporter must clarify the issue
Projects
None yet
Development

No branches or pull requests

2 participants