Our state of the art Gantt chart


Post by rahulranjan »

Hi
I am running angular Project in local its working fine . But once i get the production distribution files using - ng build --prod --base-href ./ and deploy it on server it throws error . This happened after latest update of pacckage.
main.4d642c75f70454880452.js:1 ERROR ReferenceError: Cannot access 'gr' before initialization
    at focusin (53.66f3efc943dbf9250e77.js:1)
    at HTMLDocument.u (53.66f3efc943dbf9250e77.js:1)
    at t.invokeTask (polyfills.2f48000b6c0adc9668a6.js:1)
    at Object.onInvokeTask (main.4d642c75f70454880452.js:1)
    at t.invokeTask (polyfills.2f48000b6c0adc9668a6.js:1)
    at e.runTask (polyfills.2f48000b6c0adc9668a6.js:1)
    at e.invokeTask [as invoke] (polyfills.2f48000b6c0adc9668a6.js:1)
    at m (polyfills.2f48000b6c0adc9668a6.js:1)
    at HTMLDocument._ (polyfills.2f48000b6c0adc9668a6.js:1)

Once i go to the file it point to
if(gr.floatRoot.scrollTop=gr.floatRoot.scrollLeft=0,nr)return;co ...............
................
Which is related to gantt only please have a look

Post by mats »

This is not related to our product, it's something related to your app.

Post by rahulranjan »

Hi
I downgraded the version from 1.2.0 to 1.1.5 then everything works fine.
Please cross check once
I get two errors
The project is developed in Angular 7
1st one
ERROR Error: Uncaught (in promise): ReferenceError: Cannot access 'jr' before initialization
ReferenceError: Cannot access 'jr' before initialization
    at 53.0137dda67e0e5c31d046.js:1
    at Module.cFLp (53.0137dda67e0e5c31d046.js:1)
    at r (runtime.e16e5f0b9d6924fe61d4.js:1)
    at main.dea81bdc63952568890a.js:1
    at t.invoke (polyfills.07e5f441f1a31a196fee.js:1)
    at Object.onInvoke (main.dea81bdc63952568890a.js:1)
    at t.invoke (polyfills.07e5f441f1a31a196fee.js:1)
    at e.run (polyfills.07e5f441f1a31a196fee.js:1)
    at polyfills.07e5f441f1a31a196fee.js:1
    at t.invokeTask (polyfills.07e5f441f1a31a196fee.js:1)
    at M (polyfills.07e5f441f1a31a196fee.js:1)
    at M (polyfills.07e5f441f1a31a196fee.js:1)
    at polyfills.07e5f441f1a31a196fee.js:1
    at t.invokeTask (polyfills.07e5f441f1a31a196fee.js:1)
    at Object.onInvokeTask (main.dea81bdc63952568890a.js:1)
    at t.invokeTask (polyfills.07e5f441f1a31a196fee.js:1)
    at e.runTask (polyfills.07e5f441f1a31a196fee.js:1)
    at g (polyfills.07e5f441f1a31a196fee.js:1)
2nd one
main.dea81bdc63952568890a.js:1 ERROR ReferenceError: Cannot access 'gr' before initialization
    at Object.focusin (53.0137dda67e0e5c31d046.js:1)
    at focusout (53.0137dda67e0e5c31d046.js:1)
    at HTMLDocument.u (53.0137dda67e0e5c31d046.js:1)
    at t.invokeTask (polyfills.07e5f441f1a31a196fee.js:1)
    at Object.onInvokeTask (main.dea81bdc63952568890a.js:1)
    at t.invokeTask (polyfills.07e5f441f1a31a196fee.js:1)
    at e.runTask (polyfills.07e5f441f1a31a196fee.js:1)
    at e.invokeTask [as invoke] (polyfills.07e5f441f1a31a196fee.js:1)
    at m (polyfills.07e5f441f1a31a196fee.js:1)
    at HTMLDocument._ (polyfills.07e5f441f1a31a196fee.js:1)

One i go inside the first one It points to
return e._$name="Widget",e.tooltip=new jr({id:"bryntum-tooltip",forElement:window,forSelector:"[data-btip]",header:!0,r ....................
You can see the jr here
2nd one
{if(gr.floatRoot.scrollTop=gr.floatRoot.scrollLeft=0,nr)return;const t=e.relatedTarget?e.relatedTarget instanceof HTMLElement?e.relatedTarget:document.body:null


I Tried to figure there is no problem in my app as older version of gantt is working fine . Please check once.
Its a angular project and throws error after production build dist.

Thanks

Post by sergey.maltsev »

Hi, rahulranjan!

Please check if this happen with our bundled demos for Angular (advanced or taskeditor)?
I can't confirm it yet.

If it happens with your app please attach it here or via PM so I can build and check it.

Post Reply