Our state of the art Gantt chart


Post by carlos00027 »

I've a problem with this:

when i excetue "npm run build:prod"

src/types/ui/bryntum.ts:13:84 - error TS2307: Cannot find module '@bryntum/gantt' or its corresponding type declarations.

13 import { EventMenu as EventMenuPro, EventModelConfig as EventModelConfigPro } from '@bryntum/gantt';

my code is:

import {
  ContextMenuBase as ContextMenuGantt,
  Model as ModelGantt,
  Column as ColumnGantt,
  TaskMenu as TaskMenuGantt,
  Grid as GridGantt,
  TaskModelConfig
} from '@bryntum/gantt';

steps:
I was work with trial license but I paid the new license. i was setting a token in .npmrc.
I was unistall @bryntum/gantt and i was install @bryntum/gantt-thin

but now I not compile the command "npm run build:prod" and throw :

Cannot find module '@bryntum/gantt' or its corresponding type declarations.

can you help me please?


Post by ghulam.ghous »

Hello,

Before installing and setting up the licensed package, have you tried cleaning up the project? Please see the instructions here:

https://bryntum.com/products/gantt/docs/guide/Gantt/npm-repository#project-cleanup

Please clear npm cache, browser cache and cookies etc and then try again?

If this does not help can you please try removing the npm modules etc from your project as well.


Post by carlos00027 »

yes and it's not working. i think EventMenu as EventMenuPro, EventModelConfig as EventModelConfigPro shoulbe import from other package


Post by marcio »

Hey carlos00027,

EventMenu should be imported from Scheduler package as you can see in the Source path section on the right.

Can you please try to import from that package?

Attachments
Screenshot 2024-10-07 at 11.22.23.png
Screenshot 2024-10-07 at 11.22.23.png (16.64 KiB) Viewed 187 times

Best regards,
Márcio


Post by carlos00027 »

it's the problem when I use the package @bryntum/gantt it's possible import some packages from @bryntum/gantt but when i paid the license now I installed @bryntum/gantt-thin but there isn't have any thinks because are in @brytum/core or @bryntum engine. I should I be refactor my code for use bryntum/package-thin ?


Post by marcio »

Hey,

Yes, you should migrate to use -thin packages in all your applications.

Please check our guide that explains that https://bryntum.com/products/gantt/docs/guide/Gantt/integration/react/multiple-products#thin-packages-overview.

Best regards,
Márcio


Post by carlos00027 »

i've other question. my project use bryntum version 5.x.x but I was paid a new license with more products. now I should migrate all my project for it use gantt becuase it's use version 6 ?


Post by marcio »

Hey,

It's not mandatory, but we strongly recommend you update to the latest version for more features, bug fixes, and support.

We have upgrade guides available here https://bryntum.com/products/gantt/docs/api/guides-upgrading and also our API diff tool if you want to look in more detail what was removed/updated/changed between versions https://bryntum.com/products/gantt/docs/api/apidiff.

Best regards,
Márcio


Post by carlos00027 »

we think that when the license was paid we have no problems. but as result now I should migrate my old @gantt-core 5 to 6 because i used the @bryntum-gantt@trial-6 and when replace by @bryntum/gantt-thin you requirement use @bryntum/core version 6. what a headache


Post by alex.l »

Hi,

It's not a standard question, because usually at trial period 3 months we do not go so far in versions, and the trial app won't grow so big to make it not easy to update imports. So, I guess we don't have an easy way to go here. Did you build your 5.x.x trial project in 3 months or you had special extended period?

We do not recommend to use different versions of our products in one application. Please keep all versions are same in bounds of one app.

We have a guide how to migrate that Marcio mentioned. That shouldn't take a lot of time to update and you can ask for help here if any problems, we are ready to help!

Anyway, I am missing one part, could you please describe why don't you use old packages and not 6.0 thin bundles in case you won't upgrade? You can set a version you need on package.json and use old code before thin packages introduced, in case you don't want to spend time for update right now.

All the best,
Alex


Post Reply