Closed TuguldurJ closed 3 years ago
@tugcekucukoglu please help to resolve issue.
Anything would help. 🙏
any progress?
quick fix. workaround with official demo :
import '@fullcalendar/core/vdom' // ! add it
import '@fullcalendar/core'
import dayGridPlugin from '@fullcalendar/daygrid'
import timeGridPlugin from '@fullcalendar/timegrid'
import interactionPlugin from '@fullcalendar/interaction'
import FullCalendar from 'primevue/fullcalendar'
quick fix. workaround with official demo :
import '@fullcalendar/core/vdom' // ! add it import '@fullcalendar/core' import dayGridPlugin from '@fullcalendar/daygrid' import timeGridPlugin from '@fullcalendar/timegrid' import interactionPlugin from '@fullcalendar/interaction' import FullCalendar from 'primevue/fullcalendar'
Thank you @Aysnine ! But I had this error. How can you solve this?
Uncaught (in promise) TypeError: chart_esm_exports is not a constructor
@TuguldurJ Sorry, some error about chart. I'm not aware of this component.
It was related to issue #1142. Chart.js v3.0 is not supported yet.
Charts also have this issue with Vite, we'll see if there is something we can do on our end.
Closing as FullCalendar is deprecated in favor of the official component.
@cagataycivici can you elaborate on what do you mean as the official component? I'm working with Diamond theme and having exactly this issue.
Having same issue. Still no vite support?
For anyone looking for a resolution:
import '@fullcalendar/core/vdom';
in the component file add "vdom" as seen above
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports) Please demonstrate your case at codesandbox by using the issue template below. Issues without a test case have much less possibility to be reviewed in detail and assisted. https://codesandbox.io/s/admiring-hooks-cv1dy
I also created an issue on https://forum.primefaces.org/viewtopic.php?f=142&t=66480
Current behavior I purchased diamond project and try to use it with vite.js compiler recently introduced in https://github.com/primefaces/primevue-quickstart-vite.
npm run dev
then error shown:Please import the top-level fullcalendar lib before attempting to import a plugin.
What is the motivation / use case for changing the behavior? This should update outdated dependencies on Diamond Premium Template and run with Vite.js perfectly.
Please tell us about your environment: Windows 10 x64, VSCode, Node.js, Npm
Vue version: 3.X 3.0.10
PrimeVue version: 5.X 3.4.0
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] Chrome 90.0.4430.85 (Official Build) (64-bit)
main.js