GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ng generate library virtusUI --style=scss gives an error · Issue #11284 · angular/angular-cli

ng generate library virtusUI --style=scss gives an error #11284

New issue
Copy link
New issue
Copy link
Open
Enhancement
Open
ng generate library virtusUI --style=scss gives an error#11284
Enhancement
Copy link
Labels
area: @schematics/angularfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authorsfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarely
Milestone
needsTriage

Description

@AlexanderKozhevin
AlexanderKozhevin
opened on Jun 17, 2018
Issue body actions
- [ ] bug report -> please search issues before submitting
- [x] feature request

It would be cool to generate library with SCSS system.

ng generate library virtusUI --style=scss

Now I'm getting an error

Schematic input does not validate against the Schema: {"style":"scss","entryFile":"public_api","prefix":"lib","skipPackageJson":false,"skipTsConfig":false}
Errors:

  Data path "" should NOT have additional properties(style).

Activity

  1. alan-agius4 commented on Jun 18, 2018

    @alan-agius4
    alan-agius4
    on Jun 18, 2018
    Collaborator
    More actions

    What version of packages are you using? Use: ng --version

    As I managed to get this working without any problem

    ng generate library virtusUI --style=scss
    CREATE projects/virtus-ui/karma.conf.js (968 bytes)
    CREATE projects/virtus-ui/ng-package.json (185 bytes)
    CREATE projects/virtus-ui/ng-package.prod.json (158 bytes)
    CREATE projects/virtus-ui/package.json (169 bytes)
    CREATE projects/virtus-ui/src/public_api.ts (167 bytes)
    CREATE projects/virtus-ui/src/test.ts (700 bytes)
    CREATE projects/virtus-ui/tsconfig.lib.json (769 bytes)
    CREATE projects/virtus-ui/tsconfig.spec.json (246 bytes)
    CREATE projects/virtus-ui/tslint.json (317 bytes)
    CREATE projects/virtus-ui/src/lib/virtus-ui.module.ts (235 bytes)
    CREATE projects/virtus-ui/src/lib/virtus-ui.component.spec.ts (643 bytes)
    CREATE projects/virtus-ui/src/lib/virtus-ui.component.ts (263 bytes)
    CREATE projects/virtus-ui/src/lib/virtus-ui.service.spec.ts (387 bytes)
    CREATE projects/virtus-ui/src/lib/virtus-ui.service.ts (137 bytes)
    UPDATE angular.json (4829 bytes)
    UPDATE package.json (1457 bytes)
    UPDATE tsconfig.json (495 bytes)
    added 88 packages in 27.604s
    

    Mine are;

         _                      _                 ____ _     ___
        / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
       / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
      / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
     /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                    |___/
    
    
    Angular CLI: 6.0.8
    Node: 9.9.0
    OS: darwin x64
    Angular: 6.0.5
    ... animations, common, compiler, compiler-cli, core, forms
    ... http, language-service, platform-browser
    ... platform-browser-dynamic, router
    
    Package                            Version
    ------------------------------------------------------------
    @angular-devkit/architect          0.6.8
    @angular-devkit/build-angular      0.6.8
    @angular-devkit/build-ng-packagr   0.6.8
    @angular-devkit/build-optimizer    0.6.8
    @angular-devkit/core               0.6.8
    @angular-devkit/schematics         0.6.8
    @angular/cli                       6.0.8
    @ngtools/json-schema               1.1.0
    @ngtools/webpack                   6.0.8
    @schematics/angular                0.6.8
    @schematics/update                 0.6.8
    ng-packagr                         3.0.2
    rxjs                               6.2.1
    typescript                         2.7.2
    webpack                            4.8.3
    
    
  2. AlexanderKozhevin commented on Jun 18, 2018

    @AlexanderKozhevin
    AlexanderKozhevin
    on Jun 18, 2018
    Author
    More actions

    Oh, ok, I'll try to downgrade.
    @alan-agius4

         _                      _                 ____ _     ___
        / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
       / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
      / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
     /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                    |___/
        
    
    Angular CLI: 6.1.0-rc.0
    Node: 8.11.1
    OS: darwin x64
    Angular: 6.0.5
    ... animations, common, compiler, compiler-cli, core, forms
    ... http, language-service, platform-browser
    ... platform-browser-dynamic, router
    
    Package                            Version
    ------------------------------------------------------------
    @angular-devkit/architect          0.7.0-rc.0
    @angular-devkit/build-angular      0.7.0-rc.0
    @angular-devkit/build-ng-packagr   0.7.0-rc.0
    @angular-devkit/build-optimizer    0.7.0-rc.0
    @angular-devkit/build-webpack      0.7.0-rc.0
    @angular-devkit/core               0.7.0-rc.0
    @angular-devkit/schematics         0.7.0-rc.0
    @angular/cli                       6.1.0-rc.0
    @ngtools/json-schema               1.1.0
    @ngtools/webpack                   6.1.0-rc.0
    @schematics/angular                0.7.0-rc.0
    @schematics/update                 0.7.0-rc.0
    ng-packagr                         3.0.2
    rxjs                               6.2.1
    typescript                         2.7.2
    webpack                            4.9.2
    
  3. AlexanderKozhevin commented on Jun 18, 2018

    @AlexanderKozhevin
    AlexanderKozhevin
    on Jun 18, 2018
    Author
    More actions

    Yes, downgraded version works just fine.
    But version Angular CLI: 6.1.0-rc.0 has some issues.

  4. clydin
    added
    area: @schematics/angular
    on Jun 18, 2018
  5. Brocco
    added
    freq2: medium
    severity3: broken
    on Jun 21, 2018
  6. Brocco commented on Jun 26, 2018

    @Brocco
    Brocco
    on Jun 26, 2018
    Contributor
    More actions

    As of now, the component created for a library has inline style and inline template, so I am marking this as a feature request to be considered later.

    Reacted by Alan Agius
  7. Brocco
    added
    featureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
    on Jun 26, 2018
  8. regivaldo commented on Sep 21, 2018

    @regivaldo
    regivaldo
    on Sep 21, 2018
    More actions

    [Solution] On angular.json, find your project lib and paste this bloco before "architect": { param:

    "schematics": {
            "@schematics/angular:component": {
              "styleext": "scss"
        }
    },
    

    Save.
    Use ng generate component foo --project=your-lib to generate a new componet has a scss file.

  9. ngbot
    added this to the Backlog milestone on Jan 24, 2019
  10. kyliau
    added
    triage #1
    and removed
    severity3: broken
    on May 27, 2020
  11. kyliau commented on May 27, 2020

    @kyliau
    kyliau
    on May 27, 2020
    Contributor
    More actions

    inline style and template are the defaults:

    angular-cli/packages/schematics/angular/library/index.ts

    Lines 227 to 236 in 27d1200

    schematic('component', {
    name: options.name,
    selector: `${prefix}-${options.name}`,
    inlineStyle: true,
    inlineTemplate: true,
    flat: true,
    path: sourceDir,
    export: true,
    project: options.name,
    }),

  12. angular-robot
    added
    feature: votes requiredFeature request which is currently still in the voting phaseFeature request which is currently still in the voting phase
    on Feb 1, 2022
  13. angular-robot commented on Feb 1, 2022

    @angular-robot
    angular-robotBot
    on Feb 1, 2022
    Contributor
    More actions

    Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

    Find more details about Angular's feature request process in our documentation.

  14. ngbot
    modified the milestones: Backlog, needsTriage on Feb 1, 2022
  15. angular-robot commented on Feb 21, 2022

    @angular-robot
    angular-robotBot
    on Feb 21, 2022
    Contributor
    More actions

    Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

    We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

    You can find more details about the feature request process in our documentation.

  16. angular-robot
    added
    feature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authors
    and removed
    feature: votes requiredFeature request which is currently still in the voting phaseFeature request which is currently still in the voting phase
    on Feb 21, 2022
  17. alan-agius4
    removed
    triage #1
    on Jun 24, 2022
  18. alan-agius4
    added
    freq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarely
    and removed
    freq2: medium
    on Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @schematics/angularfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authorsfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarely

    Type

    Enhancement

    Projects

    No projects

      Milestone

      • needsTriageNo due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.