angular
angular copied to clipboard
[BUG] Error: node_modules/@formio/angular/FormioBaseComponent.d.ts:86:12 - error TS2300: Duplicate identifier 'ɵfac'.
Environment
Please provide as many details as you can:
- Hosting type
- [ ] Form.io
- [x] Local deployment
- Version: Windows 10
- Formio.js version: 4.14.1
- Frontend framework: Angular 14.2.12
- @formio/angular version: 5.3.0
- Browser: Chrome
- Browser version:
Steps to Reproduce
- npm i @formio/angular version: 5.3.0 --force
- ng start
Expected behavior
Start the server
Observed behavior
Error on the console:
Error: node_modules/@formio/angular/FormioBaseComponent.d.ts:86:12 - error TS2300: Duplicate identifier 'ɵfac'.
86 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<FormioBaseComponent, never>;
~~~~
Error: node_modules/@formio/angular/components/alerts/formio.alerts.component.d.ts:12:12 - error TS2300: Duplicate identifier 'ɵfac'.
12 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<FormioAlertsComponent, never>;
~~~~
Error: node_modules/@formio/angular/components/formbuilder/formbuilder.component.d.ts:37:12 - error TS2300: Duplicate identifier 'ɵfac'.
37 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<FormBuilderComponent, never>;
Example

Possible Fix
Change the library build process Stackoverflow Reference GitHub Reference
@muneebshafiq can you try to use @formio/[email protected] and let us know if the issue is gone? Also you can check this repository as for reference https://github.com/formio/angular-demo. Maybe you missed some configuration.
Thank you for your contribution. As this issue has been inactive for over 90 days, I will close it for now. If you'd like to reopen the issue, please reply and we can resume the triage process.