primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.86k stars 1.24k forks source link

Calendar - Cannot read properties of undefined (reading 'config') #1948

Closed GuillermoFarias closed 2 years ago

GuillermoFarias commented 2 years ago

In the first time the error is locatd when jest run unit testing

after updating package.json the component does not compile

dependabot alert deprecated dependencies

TypeError Cannot read properties of undefined (reading 'config')

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primevue/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=110

CodeSandbox Case (Bug Reports) https://codesandbox.io/s/epic-wing-e9ddr?file=/src/components/HelloWorld.vue

Current behavior error on component rendering and run jest unit test

Expected behavior build, rendering and run test successfully

tugcekucukoglu commented 2 years ago

Please follow setup constructions and add main.js

import PrimeVue from "primevue/config";
const app = createApp(App);
app.use(PrimeVue);
app.mount("#app");
valh1996 commented 1 year ago

@tugcekucukoglu thank you, but how to make it works with createSSRApp knowing that we never call .mount('#app') ?

If I do this I get an error that says window is undefined which is normal in SSR mode.