angular / angular/angular-cli

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

Open
#11,284 8 comments 0 reactions 0 assignees View on GitHub
area: @schematics/angular feature feature: insufficient votes freq1: low
Dominant language
TypeScript
Stars
27k
Forks
11.8k
Avg merge
14h 23m
Merged PRs (30d)
162

Description

```
- [ ] 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).
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `ng generate library virtusUI --style=scss` and inspect the library-generation schematic and its schema validation. The change is complete when the `style` option is accepted and the generated library uses SCSS without the additional-properties error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.