Closed
Description
Bug Report
Ionic version:
[x] 4.x
Current behavior:
I'm trying to use Ionic components in my angular library (npm module). I've created the angular library using this manual. Then I've installed @ionic/angular to package.json dependencies. And if I import anything from "@ionic/angular" (for example "import { IonicModule } from "@ionic/angular";") I'm getting many errors like this in "node_modules/ionicons/dist/types/components.d.ts(63,13):":
TS2320: Interface 'HTMLIonIconElement' cannot simultaneously extend types 'IonIcon' and 'IonIcon'.
Named property ''icon'' of types 'IonIcon' and 'IonIcon' are not identical.
TS2320: Interface 'HTMLIonIconElement' cannot simultaneously extend types 'HTMLStencilElement' and 'HTMLStencilElement'.
Named property 'forceUpdate' of types 'HTMLStencilElement' and 'HTMLStencilElement' are not identical.
Expected behavior:
import should not cause errors
Steps to reproduce:
- Generate new angular library:
ng new my-workspace --create-application=false
cd my-workspace
ng generate library my-lib
- install "@ionic/angular" module in the library
npm i @ionic/angular --save
- import anything from @ionic/angular:
import { IonicModule } from "@ionic/angular";