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)
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)
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.