2017-01-14 69 views
0

無法讀取屬性「isDefaultChangeDetectionStrategy」我現在害怕的生產angular2的....特別是由於在生產控制檯此錯誤。 Angular2你在開玩笑嗎?那是什麼意思。我的意思是真的......現在我的應用程序不會。它在當地工作,並習慣於在生產中工作。angular2遺漏的類型錯誤:在Chrome

main.fd49057….bundle.js:57 Uncaught TypeError: Cannot read property 'isDefaultChangeDetectionStrategy' of undefined 
    at Object.<anonymous> (main.fd49057….bundle.js:57) 
    at r (inline.js:1) 
    at Object.<anonymous> (main.fd49057….bundle.js:43) 
    at r (inline.js:1) 
    at Object.<anonymous> (main.fd49057….bundle.js:1721) 
    at r (inline.js:1) 
    at Object.<anonymous> (main.fd49057….bundle.js:1658) 
    at r (inline.js:1) 
    at Object.<anonymous> (main.fd49057….bundle.js:1693) 
    at r (inline.js:1) 

這是我如何部署到生產上S3

ng build -prod 
aws --profile ttt s3 sync dist/ s3://angular.bhead.com --acl public-read 

然後我部署在火力和工程...

請告訴我最令人不安的是它工作在FF和Safari瀏覽器中生產。它的鉻,我得到這個錯誤部署在s3或firebase。

Angular2 ...爲什麼?爲什麼這個戲劇性諷刺? Google ... angular2和chrome應該是一個幸福的家庭。

回答

1

檢查您的角度版本,並確保它所有其他相關的庫相匹配。當我添加Angular 4的核心庫時,我遇到了同樣的問題。我沒有將角度核心對象放在與之前版本相同的屬性中。我希望有所幫助。