I am creating dynamic form builder using angular version 12.
I am using Angular-Formio to create dynamic builder. I have installed the package and follow the steps given in the documentation.
I have installed package with this command:-
npm install --save angular-formio
Imported into app module ts
import { FormioModule } from 'angular-formio';
then in import part, I am getting this error.
I don’t know why I am getting this error and which package is better to create dynamic form builder(Drag and drop) using angular 12
2
Answers
Actually, I have installed wrong package
For Angular application, we need to install @formio/angular this package.
Steps to install package:-
npm install --save @formio/angular
Add
import { FormioModule } from '@formio/angular';
in app.module.ts file@NgModule({imports [FormioModule]})
If you are using angular material then, add @formio/angular-material this package.
Steps to install package:-
npm install --save @formio/angular-material
Add
import { MatFormioModule } from '@formio/angular-material';
import { FormioModule } from '@formio/angular';
in app.module.ts file
@NgModule({imports [ FormioModule,FormioModule]})
Your module is not yet loaded by the Angular Server in node ng serve, so restart your server so the server loads the module that you just added in @NgModule app.module.ts