New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RRule Plugin Not Working on v6 on NextJS #7260
Comments
Same problem with SvelteKit ... 😢 |
Getting the same issue here with my Next.js project 🥲 |
I'm assuming it's related to this jkbrzt/rrule#548 |
Got a temporary solution as of now in --- a/node_modules/@fullcalendar/rrule/index.js
+++ b/node_modules/@fullcalendar/rrule/index.js
@@ -1,5 +1,6 @@
import { createPlugin } from '@fullcalendar/core/index.js';
-import { RRuleSet, RRule, rrulestr } from 'rrule';
+import * as pkg from 'rrule';
+const { RRule } = pkg;
import { parseMarker, identity, createDuration } from '@fullcalendar/core/internal.js';
const recurringType = {
@@ -43,7 +44,7 @@ function parseEventRRule(eventProps, dateEnv) {
}
if (typeof eventProps.rrule === 'object' && eventProps.rrule) { // non-null object
let res = parseRRuleObject(eventProps.rrule, dateEnv);
- rruleSet = new RRuleSet();
+ rruleSet = new pkg.RRuleSet();
rruleSet.rrule(res.rrule);
isTimeSpecified = res.isTimeSpecified;
isTimeZoneSpecified = res.isTimeZoneSpecified;
@@ -87,7 +88,7 @@ function parseRRuleObject(rruleInput, dateEnv) {
return { rrule: new RRule(rruleOptions), isTimeSpecified, isTimeZoneSpecified };
}
function parseRRuleString(str) {
- let rruleSet = rrulestr(str, { forceset: true });
+ let rruleSet = pkg.rrulestr(str, { forceset: true });
let analysis = analyzeRRuleString(str);
return Object.assign({ rruleSet }, analysis);
} |
In v6.1.6 I changed the way the |
Hello @arshaw 👋 I just tested and is working perfectly fine!! Thank you for the bugfix and thanks for doing it so fast!! Great job and awesome community 😎💪 |
Reduced Test Case
https://github.com/BautistaCRP/next-fullcalendar-demo
Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?
Which connector are you using (React/Angular/etc)?
React
Bug Description
Error:
index.ts
package.json
The text was updated successfully, but these errors were encountered: