182 questions
Score of 1
1 answer
137 views
Internal Error while using angular compiler to parse html
I am creating a angular shcematics project to propose suggestions to my angular project. I am trying to use the built in angular compiler to parse the code because libraries such as parse5 and ...
Score of 1
0 answers
41 views
Ngrx action group: automatic way to rewrite old Actions
I have over 800 Actions in my project written in the old form:
export const GetAction = createAction(
'[BOOK] GET',
props<{
filter: BookFilterModel,
}>(),
);
export const ...
Score of 1
0 answers
53 views
ng-update schematic - object property migration
I'm currently working on an implementation for an ng-update schematic for our internal design system. We have components and interfaces that are renamed between 2 versions of our package. The ...
Score of 1
0 answers
96 views
Can Nx or Angular Schematics support global path aliases in project.json for all keys requiring relative paths, such as $schema?
In our current workflow, in Nx Monorepo, we are developing VSCode extensions that automate the creation and configuration of new (e.g. Angular) apps based on templates located in various ...
Score of 2
1 answer
214 views
Jest tests using @angular-devkit/schematics are throwing errors for the encoded data was not valid for encoding utf-8
On three different applications Angular are failing all test that use @angular-devkit/schematics. Two of the applications were passing fine on Angular 17.2.0 but failed after upgrading to 17.3.7. The ...
Score of 0
1 answer
159 views
error NG8002: Can't bind to 'owlDateTimeTrigger' since it isn't a known property of 'input'
HI i need to add owlDateTimeTrigger in angular 16 microfrontent but it show error. please check the below screenshot.
Code:
<ng-template #childtemplateSheduleTime let-data>
<input [(ngModel)]...
Score of 0
2 answers
4049 views
error NG2012: Component imports must be standalone components, directives, pipes, or must be NgModules
If we add some dependency in angular standalone component and app.module then show this error:
error NG2012: Component imports must be standalone components, directives, pipes, or must be NgModules
Score of 1
1 answer
128 views
addImportToModule returns empty array of changes
I'm trying to use angular schematics to add imports to NgModule. I'm using Angular 16.2.5. Here's the code of the logic:
import { addImportToModule, insertImport} from '@schematics/angular/utility/ast-...
Score of 0
1 answer
616 views
Package "single-spa-angular" was found but does not support schematics
I am trying to convert existing angular app to single spa microfrontend but I am getting the following error
"Package "single-spa-angular" was found but does not support schematics.&...
Score of 4
1 answer
4410 views
How to perform standalone migration in multi-workspace (with Angular schematics)
In a multi-project Angular repo, I could not manage to get the @angular/core:standalone-schematics to work (this allows an automatic conversion of module-based components to standalone components).
...
Score of 1
0 answers
142 views
In angular, does ng generate keep path info?
This question is more about how deep inside ng generate command works.
I am using Visual Studio Code to develop an Angular project.
I am generating components and services using the terminal section ...
Score of 2
2 answers
1121 views
How to use Angular Schematics not published but in project direclty
I want to create an Angular Schematics to create some components and make it easier to develop my application. The problem is that i don't want to publish it, i want to use it "as it is" in ...
Score of 1
0 answers
31 views
Is there a way to inherit Schema of custom schematic?
Using Angular Schematics, I would like to build a schematic which inherits the schema from a "Base" schematic (which is private and hidden, so it cannot be executed from CLI).
So when I run:
...
Score of 1
0 answers
30 views
How to print help form Schematics?
Is there a built-in method for printing formatted CLI help message using Angular Schematics. I'm thinking of something something like Yargs would produce, for example.
schematics @my-schematic --help
...
Score of 1
0 answers
193 views
Problem with Angular Schematics Tree persisting in local file system before executing command
I'm using @angular-devkit/schematics to create a schematic for my NodeJS projects. The schematic is really simple. It just needs to add husky to the devDependencies of the project along with the ...