You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I have implemented your component as stated in the readme but it is not working and resulting in this error:
index-93a5cbbe.js:2695 TypeError: prefetch.setComponents is not a function
at DashjsSettingsControl.componentDidLoad (dashjs-settings-control.entry.js:115)
at safeCall (index-93a5cbbe.js:1538)
at postUpdateComponent (index-93a5cbbe.js:1456)
at postUpdate (index-93a5cbbe.js:1391) undefined
Thanks a lot and hope we can resolve the error.
My Component:
import{Component,h,Host,Build,Element}from'@stencil/core';
@Component({tag: 'dashjs-reference-ui',styleUrl: 'dashjs-reference-ui.css',shadow: false,})exportclassDashjsReferenceUi{
@Element()el: HTMLElement;componentDidLoad(){constcomponentsConfig=[{tag: 'dashjs-settings-control-modal',props: {prefetching: true,},},{tag: 'ion-modal',props: {prefetching: true,},},{tag: 'ion-content',props: {prefetching: true,},},{tag: 'ion-searchbar',props: {prefetching: true,},},{tag: 'ion-content',props: {prefetching: true,},},{tag: 'ion-grid',props: {prefetching: true,},},{tag: 'ion-row',props: {prefetching: true,},},];if(Build.isBrowser){// only pre-fetch if it's a real browserconstprefetch=this.el.querySelector('stencil-component-prefetch')asany;prefetch.setComponents(componentsConfig);}}render(){return(<Host><stencil-component-prefetch/><dashjs-api-control></dashjs-api-control><dashjs-settings-controlonSettingsUpdated={event=>console.log(event)}></dashjs-settings-control><dashjs-playerstream-url={''}></dashjs-player><dashjs-statistics></dashjs-statistics></Host>);}}
The text was updated successfully, but these errors were encountered:
Hi I have implemented your component as stated in the readme but it is not working and resulting in this error:
Thanks a lot and hope we can resolve the error.
My Component:
The text was updated successfully, but these errors were encountered: