-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Open
Open
Copy link
Labels
area: @angular-devkit/schematicsfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix
Description
Is this a regression?
- Yes, this behavior used to work in the previous versionTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
The previous version in which this bug was not present was
No response
Description
This is our theme-color generator command, running it twice results in "already exists" even with --force
, also --defaults
seem to have no effect here.
pnpm ng generate @angular/material:theme-color --force --defaults --directory="/libs/app-theme/vendor/material/" --primary-color="#0641e6" --tertiary-color="#994aff" --neutral-color="#313138" --error-color="#eb5757" --secondary-color="#009096" --neutral-variant-color="#b2b2b8"
Path "/libs/app-theme/vendor/material/_theme-colors.scss" already exist.
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-starter-waftjbtm?file=package.json
Steps to reproduce:
npm run issue
Btw this starter is on NG18!
Expected Behavior
Should respect all flags, even default to avoid providing all color flags.
Actual Behavior
Some flags are ignored.
Environment
- Angular: See repl
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/schematicsfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
crisbeto commentedon Jun 23, 2025
I'm not sure where you saw the
--force
and--defaults
flags, but they aren't mentioned in our docs. These are the available flags: https://github.com/angular/components/blob/main/src/material/schematics/ng-generate/theme-color/schema.jsonmuuvmuuv commentedon Jun 23, 2025
From the CLI
--help
. See my screenshot, I am on version 20.0.3crisbeto commentedon Jun 23, 2025
Will transfer this into the CLI repo since these aren't flags we've configured.