Questions tagged [angular-schematics]

Schematics is a workflow tool for the modern web; it can apply transforms to your project, such as create a new component, or updating your code to fix breaking changes in a dependency. Or maybe you want to add a new configuration option or framework to an existing project. Angular schematics are part of angular-cli and are used to generate components, modules, pipes, etc.

179 questions
0
votes
0 answers

How to force Cypress Schematic to install a specific version of Cypress?

In an Angular project, ng add @cypress/schematic installs the latest version of Cypress by default. With the many breaking changes in Cypress 10 and a lack of documentation for implementing Cucumber in Cypress 10, this proves problematic. We want to…
Kyle Vassella
  • 2,296
  • 10
  • 32
  • 62
0
votes
1 answer

Updating from Angular11 to 13 generates error Data path "" must NOT have additional properties(styleext)

I have checked out the following prescriptions for this problem and they did not resolve my issue. I upgraded from angular 11 to 13 following the procedure on the Angular official website which went well. Then Itried to generate a component and the…
Tee-Jay
  • 736
  • 2
  • 9
  • 28
0
votes
0 answers

How to commit changes to Git in Angular Schematic

I would like my Angular Schematic for ng add to automatically commit its changes to Git. Adding a Rule to commit the changes to Git after all my other Rules doesn't work properly because it executes too early and misses most of the changes: export…
Sam Herrmann
  • 6,293
  • 4
  • 31
  • 50
0
votes
1 answer

What is packageGroup in ng-update object?

I am doing analysis around ng-update command in angular to run custom logic after ng-update. I came across an ng-update object's property packageGroup of which I did not find detailed explanation. Explanation provided in angular docs - A list of…
Krishna
  • 154
  • 4
  • 14
0
votes
1 answer

How to change variable at module with angular schematics?

Just like addImportToModule or addProviderToModul,my module file look like this: const EXAMPLES = [ ButtonIconExampleComponent, ButtonTextExampleComponent, ButtonDashedExampleComponent ] @NgModule({ declarations: EXAMPLES, …
injoker1
  • 163
  • 10
0
votes
0 answers

Angular schematics caching somewhere

I feel like my custom schematics is cached somewhere and is running an old version. Before the weekend I had published my schematic to npm, and had installed globally. I made some updates to my index.ts, and no matter what I do, the old schematic…
Chris Wilson
  • 135
  • 3
  • 16
0
votes
1 answer

trying to add @ionic/angular to existing angular 12 app fails

When trying to run: ng add @ionic/angular to this existing repo: https://github.com/skyleguy/angular-capacitor-project-base results in: ℹ Using package manager: npm ✔ Found compatible package version: @ionic/angular@5.6.12. ✔ Package information…
0
votes
1 answer

Issue publishing and installing standalone schematic package to Angular project

My goal is to publish a custom Angular schematic package to my company's private npm registry for other devs to leverage. Here's what I've accomplished so far: Created separate schematic project using schematic CLI. Verified the schematic works…
GS-Scooter
  • 71
  • 6
0
votes
0 answers

Schematics for no longer valid property fails for some users but not for others

We have four different devs on the project. The angular.json file for all the libs have the below lines: "schematics": { "@nrwl/angular:component": { "styleext": "scss" } } It is like this for ages now. About two…
Estevao Santiago
  • 793
  • 2
  • 7
  • 30
0
votes
1 answer

Angular - ng serve command is falling ERR_NO_ICU

I'm developing a website with Spring Boot and Angular, and I'm facing some difficulties while trying to start Angular's live development server : ubuntuserver]#> ng serve internal/encoding.js:429 throw new errors.TypeError('ERR_NO_ICU',…
0
votes
1 answer

Copying folder and its contents with Angular Schematics

I have a fonts folder in my library that I would like to copy over to Angular app (src/asset folder to be more specific), with Angular Schematics during or post install process. Running a simple cp script in package.json is not an option. Here is my…
Damiao
  • 51
  • 5
0
votes
1 answer

How to add package dependency in Angulrar Schematics(officially)

The task is to extend ng-new schematics and add some dependencies like @angular/material and Lumberjack etc. I found one article where author suggested to use some utilities provided in package '@schematics/angular/utility/dependencies'. I tried…
Jose Loor
  • 205
  • 5
  • 18
0
votes
1 answer

Migrating breaking change using angular ng-update schematic

Unable to run custom ng update schematic. The goal is to traverse html files and search for certain dom attributes, however I am unsure how to properly traverse the Tree structure in an angular application. I have not found a great deal online…
0
votes
0 answers

Angular Schematics generate with interactive user interaction

I have a simple situation: I want to run schematics read the project tree find special files (according to the special rule) List them to the console Retrieve some user interruption (select some file from the list, ask the user for desicion) Finish…
0
votes
1 answer

Error when trying to run my Angular Schematics

When running schematics .:schema from the root folder of my project, I get the following error: An error occured: Error: Cannot find module '/Users/pete/Desktop/projects/Angular/DEV/SchematicsDemo/src/my-component/index' Require stack: -…
petehodl
  • 49
  • 6