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
I try to integrate the library in a Vue3/TS project mostly using the Composition API but I face some issues. First there are those warnings in the console and then when trying to use openModal to open a Component in the modal container there is an error. This is probably related to the warnings.
// App.vue<scriptlang="ts">import{ defineComponent }from'vue'// @ts-expect-error no TS types available yetimport{container}from'jenesius-vue-modal'exportdefaultdefineComponent({components: {WidgetContainerModal: container,},})</script><template><divid="app"><router-view/><WidgetContainerModal/></div></template>
// Component.vue simplified<scriptsetuplang="ts">// @ts-expect-error no TS types available yetimport{openModal}from'jenesius-vue-modal'importExampleModalfrom'./ExampleModal.vue'</script><template><div><buttontext="Open Modal" @click="openModal(ExampleModal)">OpenModal</button></div></template>
Here are the console warnings
[Vue warn]: onMounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.
and probably related to useTransitionState() from the dependencies
I also have this warning
runtime-core.esm-bundler.js:6870 [Vue warn]: Invalid VNode type: Symbol(Fragment) (symbol)
at <TransitionGroup name="modal-list" >
at <WidgetModalContainer>
at <App>
And finally the error when I try to open the modal
jenesius-vue-modal.cjs.js:771 Modal Container not found. Put container from jenesius-vue-modal in App's template. Check documentation for more information
localhost/:1 Uncaught (in promise) Modal Container not found. Put container from jenesius-vue-modal in App's template. Check documentation for more information
I probably make something wrong but do not understand what.
Thanks for the help
The text was updated successfully, but these errors were encountered:
@pluxain, Sorry for long support. I have not received notification
Can u show ExampleModal.vue file
Or send me link for project i will run it on my pc
Thnx!
Actually I must have done something wrong somewhere else as I tried to reproduce the error on a new project (that I wanted to use as a reference here) and everything is working like a charm!
Hello,
I try to integrate the library in a Vue3/TS project mostly using the Composition API but I face some issues. First there are those warnings in the console and then when trying to use
openModal
to open a Component in the modal container there is an error. This is probably related to the warnings.Here are the console warnings
which seems related to this
and probably related to
useTransitionState()
from the dependenciesI also have this warning
And finally the error when I try to open the modal
I probably make something wrong but do not understand what.
Thanks for the help
The text was updated successfully, but these errors were encountered: