I'm trying to deploy my Angular App but after running ng build --prod --base-href . I get the following error -
main.afc84290417a517dd6c3.js:1 Uncaught TypeError: Cannot set property _autoActivated' of undefined
at Object.zUnb (main.afc84290417a517dd6c3.js:1)
at p (runtime.a66f828dca56eeb90e02.js:1)
at Object.5 (main.afc84290417a517dd6c3.js:1)
at p (runtime.a66f828dca56eeb90e02.js:1)
at n (runtime.a66f828dca56eeb90e02.js:1)
at Array.e [as push] (runtime.a66f828dca56eeb90e02.js:1)
at main.afc84290417a517dd6c3.js:1
Which seems to be related to TweenMax.JS
export const TweenMax = TweenMaxBase;
TweenMax._autoActivated = [TimelineLite, TimelineMax, CSSPlugin, AttrPlugin, BezierPlugin, RoundPropsPlugin, DirectionalRotationPlugin, Back, Elastic, Bounce, RoughEase, SlowMo, SteppedEase, Circ, Expo, Sine, ExpoScaleEase];
If I just run `ng build` it runs fine
Versions:
"@angular/animations": "^6.0.7",
"@angular/cdk": "^6.3.1",
"@angular/common": "^6.0.7",
"@angular/compiler": "^6.0.7",
"@angular/core": "^6.0.7",
"@angular/forms": "^6.0.7",
"@angular/http": "^6.0.7",
"@angular/material": "^6.3.1",
"@angular/platform-browser": "^6.0.7",
"@angular/platform-browser-dynamic": "^6.0.7",
"@angular/router": "^6.0.7",
"@types/three": "^0.92.11",
"core-js": "^2.5.4",
"gsap": "^2.0.1",
"hammerjs": "^2.0.8",
"normalize-scss": "^7.0.1",
"normalize.css": "^8.0.0",
"rxjs": "^6.2.1",
"three": "^0.87.1",
"three-effectcomposer-es6": "0.0.4",
"three-screen-quad": "^0.2.1",
"zone.js": "^0.8.26"