Closed TommiChi closed 2 years ago
Updating my version of Stencil to 1.2.5 yields the same behaviour
Hi guys,
Does anyone have some feedback for me? Do you need more information? Are there additional details I need to add to the ticket?
Thanks!
When using stencil in stencil instead of using that defineCustomElements function try to just import the library of the other component. Examples:
https://github.com/ionic-team/ionic-pwa-toolkit/blob/master/src/global/app.ts
https://stenciljs.com/docs/distribution#in-a-stencil-app-starter-app
Hey folks! This is on an old version of Stencil. If you are still having this issue on latest versions, please make a new ticket!
Stencil version:
I'm submitting a: [x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior: Javascript error "TypeError: Cannot read property '$instanceValues$' of undefined"
Expected behavior: External Stencil component successfully renders
Steps to reproduce:
import { defineCustomElements } from 'external-component/loader';
Related code:
Other information: defineCustomElements works as expected when used in other frameworks such as Angular, but not when called inside of a Stencil component (.tsx file)