angular icon indicating copy to clipboard operation
angular copied to clipboard

[BUG] Error: node_modules/@formio/angular/FormioBaseComponent.d.ts:86:12 - error TS2300: Duplicate identifier 'ɵfac'.

Open muneebshafiq opened this issue 2 years ago • 1 comments

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

  1. npm i @formio/angular version: 5.3.0 --force
  2. 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

image

Possible Fix

Change the library build process Stackoverflow Reference GitHub Reference

muneebshafiq avatar May 02 '23 10:05 muneebshafiq

@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.

roma-formio avatar Jun 08 '23 13:06 roma-formio

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.

olgabann avatar Sep 04 '24 13:09 olgabann