I am using the PRO trial version of the Scheduler. I read that you’ve introduced a destructor in v6 that can be used for SPA applications. As I am building a React app, I decided to try it out. I am following the provided example at: DHTMLX Scheduler 6.0 with ES6 Module Support, Destructors, API updates.
import { Scheduler } from "dhtmlx-scheduler";
gives me a
The requested module '/dhtmlxscheduler/dhtmlxscheduler.js' does not provide an export named 'Scheduler'
.
I see the definition present in the d.ts
file:
export declare var scheduler: SchedulerStatic;
export declare var Scheduler: SchedulerEnterprise;
Is this because the .js is minified? How am I supposed to handle that?
Yes, I am importing from the proper file. If I don’t use a named import and just leave it as:
import "dhtmlxscheduler";
and use the global instance, everything works properly.