Purchased Gantt, how do I add it to my react-ts vite project?

I downloaded gantt_8.0.8_startup from the client portal.

I placed this folder into my project root /.

I ran npm install ./gantt_8.0.8_startup and my package.json is updated now and it shows:

"dhtmlx-gantt": "file:gantt_8.0.8_startup",

In my src/ I have a Gantt.tsx somewhere, and I’m able to import { gantt } from 'dhtmlx-gantt'

However, I get this error now:

The requested module '/gantt_8.0.8_startup/codebase/dhtmlxgantt.js' does not provide an export named 'gantt'

Ooof I figured it out…

I have to add

optimizeDeps: {
    include: ["dhtmlx-gantt"],
  },

To my vite.config.ts