question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugins Prop not working

See original GitHub issue

Error: The FullCalendar view “dayGridMonth” does not exist. Make sure your plugins are loaded correctly.

import React from 'react';
import FullCalendar from '@fullcalendar/react';
import dayGridPlugin from '@fullcalendar/daygrid';
import '@fullcalendar/core/main.css';
import '@fullcalendar/daygrid/main.css';

const Calendar = props => {
    return <FullCalendar defaultView="dayGridMonth" plugins={ [dayGridPlugin] } />;
};

export default Calendar;

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
ashvin777commented, Sep 3, 2020

I was able to solve this by using the same version for all plugins. I was using a different versions by mistake which was leading to this issue. Using the same version for @fullcalendar npm modules resolves this problem.

Like below -

    "@fullcalendar/daygrid": "5.1.0",
    "@fullcalendar/interaction": "5.1.0",
    "@fullcalendar/moment-timezone": "5.1.0",
    "@fullcalendar/react": "5.1.0",
    "@fullcalendar/timegrid": "5.1.0",
3reactions
RoniqueRickettscommented, Jul 7, 2021

I am experiencing this same issue. I have the following

"@fullcalendar/core": "^5.8.0",
    "@fullcalendar/daygrid": "^5.8.0",
    "@fullcalendar/interaction": "^5.8.0",
    "@fullcalendar/moment": "^5.8.0",
    "@fullcalendar/react": "^5.8.0",
    "@fullcalendar/timegrid": "^5.8.0",

in my package.json file and I am unable to use any of the events like select or dateClick. I am getting this error Error: viewType "dayGridMonth" is not available. Please make sure you've loaded all neccessary plugins Additionally, I have these props in the component

 plugins={[
         interactionPlugin,
         momentPlugin, 
         timeGridPlugin,
         dayGridPlugin, 
       ]}
       initialView='dayGridMonth'
       headerToolbar={headerOptions}
       editable={true}
       selectable={true}
       weekends
       businessHours={true}
       events={events}
       eventClick={handleEventClick}
       ```
       
Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue JS custom plugin props not updating - Stack Overflow
I'm building a Vue JS custom plugin which has some options that can be passed as props. I'm building the plugin using the ......
Read more >
Props to plugin views - Discuss - ProseMirror
What's the best way to pass props into plugin views so that they update when props change (not only when state changes)?
Read more >
The new Provide and Inject in Vue 3 - VueDose
This pattern is known as prop drilling. For developers of plugins or component libraries, problems also arise with providing data.
Read more >
Props | Vue.js
Vue components require explicit props declaration so that Vue knows what ... This means you should not attempt to mutate a prop inside...
Read more >
storybook-addon-react-docgen
There exist other addons that do this, but they didn't work in the same way as the info addon. This resulted in complicated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found