I recently started using PrimeVue 3.11.0.
I use the Dialog component. When running `npm run serve` everything works fine - the Dialog is displayed properly.
However, when I run unit test of my custom component and mount it, I get some warnings in console and the test fails:
Code: Select all
console.warn node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:40
[Vue warn]: Property "$primevue" was accessed during render but is not defined on instance.
at <TransitionStub>
at <Dialog visible=true onUpdate:visible=fn style= { width: '450px' } ... >
at <Anonymous ref="VTU_COMPONENT" >
at <VTUROOT>
console.warn node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:40
[Vue warn]: Unhandled error during execution of render function
at <TransitionStub>
at <Dialog visible=true onUpdate:visible=fn style= { width: '450px' } ... >
at <Anonymous ref="VTU_COMPONENT" >
at <VTUROOT>
console.warn node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:40
[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core
at <TransitionStub>
at <Dialog visible=true onUpdate:visible=fn style= { width: '450px' } ... >
at <Anonymous ref="VTU_COMPONENT" >
at <VTUROOT>
TypeError: Cannot read property 'config' of undefined
at Proxy.dialogClass (C:\Users\user\Projects\project\node_modules\primevue\dialog\dialog.cjs.js:363
What could be the issue?
BTW, are there any unit tests for PrimeVue? I couldn't find it on github.
Thank you.