jsGanttImproved / ng-gantt

Gantt for Angular 8 based on jsgantt-improved
MIT License
61 stars 28 forks source link

Cannot access 'GanttEditorOptions' before initialization #15

Closed AhsanAyaz closed 5 years ago

AhsanAyaz commented 5 years ago

I'm facing this issue on an Angular v8 app. I'm using the component in my app.component and have imported the Module too.

Uncaught ReferenceError: Cannot access 'GanttEditorOptions' before initialization
    at Module../node_modules/ng-gantt/fesm2015/ng-gantt.js (ng-gantt.js:63)
    at __webpack_require__ (bootstrap:83)
    at Module../src/app/app.module.ts (app.component.ts:13)
    at __webpack_require__ (bootstrap:83)
    at Module../src/main.ts (main.ts:1)
    at __webpack_require__ (bootstrap:83)
    at Object.0 (main.ts:12)
    at __webpack_require__ (bootstrap:83)
    at checkDeferredModules (bootstrap:45)
    at Array.webpackJsonpCallback [as push] (bootstrap:32)

Following are the versions I'm at:

"jsgantt-improved": "^2.4.4",
"ng-gantt": "^2.4.3",
mariohmol commented 5 years ago

weird.. I released another vesion.. 2.4.4 please test this out

AhsanAyaz commented 5 years ago

@mariohmol , now I'm getting the following error:

ERROR in ./src/app/gantt/gantt.component.ts
Module not found: Error: Can't resolve 'ng-gantt/gantt/gantt.editoroptions' in 'src/app/gantt'
AhsanAyaz commented 5 years ago

Also, I can't import it from ng-gantt because it says no exported member for GanttEditorOptions for the import below:

import { GanttEditorOptions, GanttEditorComponent } from 'ng-gantt';
mariohmol commented 5 years ago

let me try again here.. sorry.. still using ang7

mariohmol commented 5 years ago

weird that travis is passing https://travis-ci.com/jsGanttImproved/ng-gantt

what is your angular versions?

mariohmol commented 5 years ago

try v2.4.5