-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Support for Angular 11.1+ #2701
Comments
This issue has been fixed and released as part of v5.10.14 release. Please let us know, in case you are still encountering a similar issue/problem. |
@aitboudad do you intend v5.10.14 and not v5.5.14 We are still running into this issue, there is no verbose output
|
@mburger81 the version is |
I'm getting the
|
Confirmed this has fixed what I originally posted. I have been able to successfully install ngx-formly now on Angular 11.1.4 with the following command: |
Is this issue still considered closed? I'm having " $ nx add @ngx-formly/schematics --ui-theme=material
ℹ Using package manager: npm
✔ Found compatible package version: @ngx-formly/schematics@5.10.14.
✔ Package information loaded.
✔ Package successfully installed.
Cannot read property 'kind' of undefined Only Here are my dependencies: {
"dependencies": {
"@angular/animations": "11.2.3",
"@angular/cdk": "11.1.1",
"@angular/common": "11.2.3",
"@angular/compiler": "11.2.3",
"@angular/core": "11.2.3",
"@angular/forms": "11.2.3",
"@angular/material": "11.1.1",
"@angular/platform-browser": "11.2.3",
"@angular/platform-browser-dynamic": "11.2.3",
"@angular/router": "11.2.3",
"@ngrx/component": "^11.0.1",
"@ngrx/component-store": "11.0.0",
"@nrwl/angular": "11.4.0",
"@vhb/vhb-map": "^2.1.1",
"@vhb/vhb-pdf": "^0.1.2",
"ag-grid-angular": "^25.1.0",
"ag-grid-community": "^25.1.0",
"angular-split": "^5.0.0",
"lodash": "^4.17.21",
"rxjs": "^6.6.6",
"tslib": "^2.0.0",
"zone.js": "^0.10.2"
}
} |
Getting the same issue with Angular 11.2.4 using yarn v1.22.5 and formly 5.10.14 ng add @ngx-formly/schematics --ui-theme=bootstrap
ℹ Using package manager: yarn
✔ Found compatible package version: @ngx-formly/schematics@5.10.14.
✔ Package information loaded.
✔ Package successfully installed.
Cannot read property 'kind' of undefined my depenencies "dependencies": {
"@angular/animations": "~11.2.4",
"@angular/common": "~11.2.4",
"@angular/compiler": "~11.2.4",
"@angular/core": "~11.2.4",
"@angular/forms": "~11.2.4",
"@angular/localize": "~11.2.4",
"@angular/platform-browser": "~11.2.4",
"@angular/platform-browser-dynamic": "~11.2.4",
"@angular/router": "~11.2.4",
"@ng-bootstrap/ng-bootstrap": "^9.0.2",
"@ng-select/ng-select": "^6.1.0",
"@ngx-formly/schematics": "5.10.14",
"@ngxs/form-plugin": "^3.7.1",
"@ngxs/logger-plugin": "^3.7.1",
"@ngxs/router-plugin": "^3.7.1",
"@ngxs/store": "^3.7.1",
"bootstrap": "^4.5.0",
"rxjs": "~6.6.6",
"ts-json-api": "^1.1.0",
"ts-toolbelt": "^8.0.7",
"tslib": "^2.0.0",
"zone.js": "~0.10.2"
} |
I think it occurs only on Windows as I can't reproduce it from my side |
Could you please try the following version
ng add @ngx-formly/schematics@5.10.0-dev.ffc0c1c6 --ui-theme=bootstrap
nx add @ngx-formly/schematics@5.10.0-dev.ffc0c1c6 --ui-theme=material |
That's always fun... I'm still getting the same error: $ nx add @ngx-formly/schematics@5.10.0-dev.6125bfe1 --ui-theme=material
ℹ Using package manager: npm
✔ Package information loaded.
✔ Package successfully installed.
Cannot read property 'kind' of undefined Let me know if I can provide any other info to help. |
Note: updated the version to @vitale232 check with |
in case it doesn't work do no waste your time and use npm install instead:
npm install @ngx-formly/core @ngx-formly/material
import { AppComponent } from './app.component';
+ import { ReactiveFormsModule } from '@angular/forms';
+ import { FormlyModule } from '@ngx-formly/core';
+ import { FormlyMaterialModule } from '@ngx-formly/material';
@NgModule({
imports: [
BrowserModule
+ ReactiveFormsModule,
+ FormlyModule.forRoot(),
+ FormlyMaterialModule,
],
...
})
export class AppModule { } |
@aitboudad That build fixes it for me. The schematic added Thanks for all that you do. |
Awesome, just pushed a stable release
|
Looks good now, but when i run, the schematics are added to the dependencies as opposed to the devDependencies. Should this be the case? |
@kgathi2 yes I think it makes sense to move it into the devDependencies, I'll fix that in the next release |
Angular12 |
The "Cannot read property 'kind' of undefined" is still happening to me in Ubuntu with Angular 11.2.14 installed. |
could you please check if the issue occurs on https://github.com/ngx-formly/ngx-formly/releases/tag/v6.0.0-next.1 |
It works but installs the schematics as dependencies, gets version ^5.0.0 of @ngx-formly/core and @ngx-formly/primeng and does not modify app.module.ts. |
BREAKING CHANGE: Formly v6 now requires Angular Version >= 13 fix ngx-formly#3053, fix ngx-formly#3049, fix ngx-formly#2701
BREAKING CHANGE: Formly v6 now requires Angular Version >= 13 fix ngx-formly#3053, fix ngx-formly#3049, fix ngx-formly#2701
Description
The ng add @ngx-formly/schematics command no longer works. It now throws the error:
An unhandled exception occurred: Cannot find module '@schematics/angular/utility/config'
Minimal Reproduction
Additional context
As of Angular CLI 11.1 they have removed schematics/angular/utility/config.
The text was updated successfully, but these errors were encountered: