我在Internet Explorer中面對Angular 4應用程序中的這個問題,但在其他瀏覽器中運行正常。錯誤:未捕獲(承諾):TypeError:無法獲取未定義或空引用的屬性'替換'
ERROR Error: Uncaught (in promise): TypeError: Unable to get property 'replace' of undefined or null reference
我在Internet Explorer中面對Angular 4應用程序中的這個問題,但在其他瀏覽器中運行正常。錯誤:未捕獲(承諾):TypeError:無法獲取未定義或空引用的屬性'替換'
ERROR Error: Uncaught (in promise): TypeError: Unable to get property 'replace' of undefined or null reference
與所有的信息,可能你沒有一個墊片的symbol replace。
我有es6填充以及package.json中的core-js .still不工作,它在Internet Explorer中導致問題。無論如何,謝謝你! – pinku4132
我的猜測是它沒有在IE中實現並在Chrome中實現。 :-)最好的候選人是墊片替換。 – alexKhymenko
直到你分享代碼,沒有人能夠幫助! –
馬努說了什麼!另外,您是否使用CLI?你是否瀏覽了polyfills.ts文件中的IE版本所需的全部代碼? – DeborahK
我已經取消了polyfill.ts中的所有導入註釋。 – pinku4132