Issues importing FullCalendar
Hi, I'm fairly new to Fresh/React/Preact. I'm trying to import FullCalendar into my project. This is my implementation:
and here are my imports:
I get this error:
Assistance would be awesome!
import "@fullcalendar/core";
import FullCalendar from "@fullcalendar/react";
import dayGridPlugin from "@fullcalendar/daygrid";
export default function Calendar() {
return (
<FullCalendar
plugins={[ dayGridPlugin ]}
initialView="dayGridMonth"
/>
);
}import "@fullcalendar/core";
import FullCalendar from "@fullcalendar/react";
import dayGridPlugin from "@fullcalendar/daygrid";
export default function Calendar() {
return (
<FullCalendar
plugins={[ dayGridPlugin ]}
initialView="dayGridMonth"
/>
);
}and here are my imports:
"react": "https://esm.sh/preact@10.19.6/compat",
"react-dom": "https://esm.sh/preact@10.19.6/compat",
"react-dom/": "https://esm.sh/preact@10.19.6/compat/",
"react/jsx-runtime": "https://esm.sh/preact@10.19.6/jsx-runtime",
"@types/react": "https://esm.sh/preact@10.19.6/compat",
"@fullcalendar/core": "https://esm.sh/@fullcalendar/core@6.1.14?external=preact&target=es2022",
"@fullcalendar/daygrid": "https://esm.sh/@fullcalendar/daygrid@6.1.14?external=preact,@types/react,react,react-dom&target=es2022",
"@fullcalendar/react": "https://esm.sh/@fullcalendar/react@6.1.14?external=preact,@types/react,react,react-dom&target=es2022""react": "https://esm.sh/preact@10.19.6/compat",
"react-dom": "https://esm.sh/preact@10.19.6/compat",
"react-dom/": "https://esm.sh/preact@10.19.6/compat/",
"react/jsx-runtime": "https://esm.sh/preact@10.19.6/jsx-runtime",
"@types/react": "https://esm.sh/preact@10.19.6/compat",
"@fullcalendar/core": "https://esm.sh/@fullcalendar/core@6.1.14?external=preact&target=es2022",
"@fullcalendar/daygrid": "https://esm.sh/@fullcalendar/daygrid@6.1.14?external=preact,@types/react,react,react-dom&target=es2022",
"@fullcalendar/react": "https://esm.sh/@fullcalendar/react@6.1.14?external=preact,@types/react,react,react-dom&target=es2022"I get this error:
core.mjs:2 Uncaught (in promise) TypeError: Class constructor Q7 cannot be invoked without 'new'
at oe4.render (core.mjs:2:43284)
at O4 (preact.mjs:2:6231)
at Q2 (preact.mjs:2:3517)
at O4 (preact.mjs:2:6615)
at Q2 (preact.mjs:2:3517)
at O4 (preact.mjs:2:6615)
at Q2 (preact.mjs:2:3517)
at O4 (preact.mjs:2:6615)
at Q2 (preact.mjs:2:3517)
at ue4 (preact.mjs:2:7839)core.mjs:2 Uncaught (in promise) TypeError: Class constructor Q7 cannot be invoked without 'new'
at oe4.render (core.mjs:2:43284)
at O4 (preact.mjs:2:6231)
at Q2 (preact.mjs:2:3517)
at O4 (preact.mjs:2:6615)
at Q2 (preact.mjs:2:3517)
at O4 (preact.mjs:2:6615)
at Q2 (preact.mjs:2:3517)
at O4 (preact.mjs:2:6615)
at Q2 (preact.mjs:2:3517)
at ue4 (preact.mjs:2:7839)Assistance would be awesome!
