You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ng generate library virtusUI --style=scss gives an error #11284
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).
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.
Activity
alan-agius4 commentedon Jun 18, 2018
What version of packages are you using? Use:
ng --versionAs 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.604sMine are;
AlexanderKozhevin commentedon Jun 18, 2018
Oh, ok, I'll try to downgrade.
@alan-agius4
AlexanderKozhevin commentedon Jun 18, 2018
Yes, downgraded version works just fine.
But version Angular CLI: 6.1.0-rc.0 has some issues.
Brocco commentedon Jun 26, 2018
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.
regivaldo commentedon Sep 21, 2018
[Solution] On
angular.json, find your project lib and paste this bloco before"architect": {param:Save.
Use
ng generate component foo --project=your-libto generate a new componet has a scss file.kyliau commentedon May 27, 2020
inline style and template are the defaults:
angular-cli/packages/schematics/angular/library/index.ts
Lines 227 to 236 in 27d1200
angular-robot commentedon Feb 1, 2022
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.
angular-robot commentedon Feb 21, 2022
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.