Open SergeyMaltsev opened 2 years ago
Engine classes need documentation to be published in docs and available in typings.
SchedulerProProjectMixin ConstrainedEarlyEventMixin HasDateConstraintMixin HasPercentDoneMixin
and others.
This code could not be compiled with React Typescript app
import { HasPercentDoneMixin } from '@bryntum/gantt/gantt.umd.js'; class MyProject extends HasPercentDoneMixin.derive(ProjectModel) {}
Error is shown
Module '"@bryntum/gantt/gantt.umd.js"' has no exported member 'HasPercentDoneMixin'. TS2305 8 | import './App.scss'; 9 | > 10 | import { HasPercentDoneMixin } from '@bryntum/gantt/gantt.umd.js'; | ^ 11 | 12 | class MyProject extends HasPercentDoneMixin.derive(ProjectModel) {} 13 |
Temporarily workaround
// @ts-ignore import { HasPercentDoneMixin } from '@bryntum/gantt/gantt.umd.js'; class MyProject extends HasPercentDoneMixin.derive(ProjectModel) {}
Related issue https://github.com/bryntum/bryntum-suite/issues/1725
The workaround doesn't work for me, it gives me an error: Cannot read properties of undefined (reading 'derive')
Cannot read properties of undefined (reading 'derive')
@greglecki which version did you use for checking?
Engine classes need documentation to be published in docs and available in typings.
and others.
This code could not be compiled with React Typescript app
Error is shown
Temporarily workaround
Related issue https://github.com/bryntum/bryntum-suite/issues/1725