Josh
Josh
DDeno
Created by Josh on 7/9/2024 in #help
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:
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!
9 replies
DDeno
Created by Josh on 7/6/2023 in #help
Migrating large Node project to Deno
Is there any reliable way to migrate a Node project to Deno? Currently working on a large project that is in dependency purgatory and am sweet talking the team into Deno, but they don't want to have to rewrite everything. It has gulp and workbox as well which are essentials. It has a lot of weird Node quirks which I'd like to remove completely if we switch over
11 replies
DDeno
Created by Josh on 3/14/2023 in #help
Better way to allow downloading of files besides serving entire file
24 replies