Skip to content

ng new generates wrong file type #13864

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
0x7FFFFFFFFFFFFFFF opened this issue Mar 10, 2019 · 3 comments
Closed

ng new generates wrong file type #13864

0x7FFFFFFFFFFFFFFF opened this issue Mar 10, 2019 · 3 comments
Assignees
Labels
area: @schematics/angular freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix
Milestone

Comments

@0x7FFFFFFFFFFFFFFF
Copy link

🐞 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?

I don't know, as I'm a new Angular user.

Description

A clear and concise description of the problem...
C:\my_projects>ng new --help
arguments:
  name
    The name of the new workspace and initial project.

options:
...
  --style
    The file extension or preprocessor to use for style files.
...

As you can see, --style specifies the file extension and preprocessor. However, from the output of below command, you can see .scss files are generated even I specified --style sass.


C:\my_projects>ng new my-app --style sass
? Would you like to add Angular routing? No
...
CREATE my-app/src/styles.scss (80 bytes)
...
CREATE my-app/src/app/app.component.scss (0 bytes)
...
C:\my_projects>

I tried both --style sass and --style scss but in either cases only .scss files are generated. What I expected .sass files generated based on the help of ng new command.

🔬 Minimal Reproduction

🔥 Exception or Error




None.

🌍 Your Environment




C:\my_projects>ng version

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


Angular CLI: 7.3.5
Node: 10.13.0
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.13.5
@angular-devkit/core         7.3.5
@angular-devkit/schematics   7.3.5
@schematics/angular          7.3.5
@schematics/update           0.13.5
rxjs                         6.3.3
typescript                   3.2.4


C:\my_projects>

Anything else relevant?

@alan-agius4
Copy link
Collaborator

Hi, I re-opened this as this is indeed an open issue which should have been resolved in the latest patch but didn’t as one of the commit was not merged in the patch version.

Sass syntax and extension is fully supported by the Sass team and we should accept both SCSS and Sass.

Kindly see: #13867

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Mar 12, 2019

Closed via 0fca5f7

@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
area: @schematics/angular freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix
Projects
None yet
Development

No branches or pull requests

2 participants