opened
joonaspi
username_0
**Stencil version:**
<!-- (run `npm list @stencil/core` from a terminal/cmd prompt and paste output below): -->
```
 @stencil/core@0.9.1
 @ionic/core@4.0.0-alpha.7
```

**I'm submitting a:**
<!-- (check one with "x") -->
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com

**Current behavior:**
<!-- Describe how the bug manifests. -->
I'm building a Web Components library using Stencil while importing Ionic/core to utilise many Ionic components & features inside my components. This component library I am then importing in my main Ionic project.

When I started to use ionic/core and ion-inputs within Stencil components in the main Ionic project the ion-inputs seem to be rendered twice when used directly in the main Ionic project.

**Expected behavior:**
<!-- Describe what the behavior would be without the bug. -->
In Ionic project the ion-inputs should not be rendered twice if a Stencil made library is being imported

**Steps to reproduce:**
<!-- If you are able to illustrate the bug or feature request with an example, please provide steps to reproduce and if possible a demo
-->
Demo Web Components library using ionic/core: https://github.com/username_0/stencil-components-duplicate
Ionic project using above library with the bug in home page: https://github.com/username_0/ionic-using-stencil-bug

Remove from index.html head "<script src='assets/mycomponent.js'></script>" to make the Ionic ion-input duplication bug disappear.

<img width="550" alt="screen shot 2018-06-11 at 17 13 14" src="https://user-images.githubusercontent.com/3494646/41237117-6f0008cc-6d9b-11e8-995d-e3bede843c09.png">

**Related code:**

```tsx
// insert any relevant code here
```

**Other information:**
<!-- List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc. -->
Using ionic/core in Web Components causes parent Ionic project to render double ion-inputs
issue
created
madelsan86
username_1
I am facing the same problem. Did you find a solution?
comment
created
jthoms1
username_2
Could you try updating to the latest Stencil `0.9.7`? I believe a fix occurred for this in 0.9.3.
comment
created
joonaspi
username_0
Thanks for the suggestion but it does not seem to help. Problem repos are updated with stencil/core 0.9.7:
Demo Web Components library using ionic/core: https://github.com/username_0/stencil-components-duplicate
Ionic project using above library with the bug in home page: https://github.com/username_0/ionic-using-stencil-bug
comment
created
jthoms1
username_2
Thanks for testing this! I have added a bug tag and will need to create some karma tests to reproduce.
comment
created
bharathvit09
username_3
@username_2 Do you have any idea when this issue will get fixed? :)
comment