我在angular2页面上遇到很多错误,在调试输出上,我可以看到很多JavaScript运行时错误和SourceMap读取失败。
页面工作正常,只能在调试模式下看到它们,而不是在chrome中调试时在控制台中看到它们,但我认为由于这些错误,它会降低页面加载速度。任何帮助欣赏..
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'slice'
Exception was thrown at line 9, column 2657 in http://localhost/MyWeb/Scripts/vendor/core-js/client/shim.min.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
Exception was thrown at line 9, column 3371 in http://localhost/MyWeb/Scripts/vendor/core-js/client/shim.min.js
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'slice'
Exception was thrown at line 9, column 2657 in http://localhost/MyWeb/Scripts/vendor/core-js/client/shim.min.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
Exception was thrown at line 9, column 3371 in http://localhost/MyWeb/Scripts/vendor/core-js/client/shim.min.js
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'slice'
Exception was thrown at line 9, column 2657 in http://localhost/MyWeb/Scripts/vendor/core-js/client/shim.min.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
Exception was thrown at line 9, column 3371 in http://localhost/MyWeb/Scripts/vendor/core-js/client/shim.min.js
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'slice'
Exception was thrown at line 7, column 19118 in http://localhost/MyWeb/Scripts/vendor/core-js/client/shim.min.js
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'trimLeft'
Exception was thrown at line 7, column 19118 in http://localhost/MyWeb/Scripts/vendor/core-js/client/shim.min.js
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'trimRight'
Exception was thrown at line 9, column 6882 in http://localhost/MyWeb/Scripts/vendor/core-js/client/shim.min.js
0x800a1391 - JavaScript runtime error: '__defineSetter__' is undefined
Exception was thrown at line 1128, column 25 in http://localhost/MyWeb/Scripts/vendor/zone.js/dist/zone.js
SourceMap http://localhost/MyWeb/Scripts/vendor/rxjs/Observable.js.map read failed: One or more errors occurred..'iexplore.exe' (Script): Loaded 'eval code sourceUrl: http://localhost/MyWeb/Scripts/vendor/rxjs/Observable.js'.
SourceMap http://localhost/MyWeb/Scripts/vendor/rxjs/util/root.js.map read failed: One or more errors occurred..'iexplore.exe' (Script): Loaded 'eval code sourceUrl: http://localhost/MyWeb/Scripts/vendor/rxjs/util/root.js'.
SourceMap http://localhost/MyWeb/Scripts/vendor/rxjs/util/toSubscriber.js.map read failed: One or more errors occurred..'iexplore.exe' (Script): Loaded 'eval code sourceUrl: http://localhost/MyWeb/Scripts/vendor/rxjs/util/toSubscriber.js'.
SourceMap http://localhost/MyWeb/Scripts/vendor/rxjs/Subscriber.js.map read failed: One or more errors occurred..'iexplore.exe' (Script): Loaded 'eval code sourceUrl: http://localhost/MyWeb/Scripts/vendor/rxjs/Subscriber.js'.
SourceMap http://localhost/MyWeb/Scripts/vendor/rxjs/util/isFunction.js.map read failed: One or more errors occurred..'iexplore.exe' (Script): Loaded 'eval code sourceUrl: http://localhost/MyWeb/Scripts/vendor/rxjs/util/isFunction.js'.
SourceMap http://localhost/MyWeb/Scripts/vendor/rxjs/Subscription.js.map read failed: One or more errors occurred..'iexplore.exe' (Script): Loaded 'eval code sourceUrl: http://localhost/MyWeb/Scripts/vendor/rxjs/Subscription.js'.
SourceMap http://localhost/MyWeb/Scripts/vendor/rxjs/util/isArray.js.map read failed: One or more errors occurred..'iexplore.exe' (Script): Loaded 'eval code sourceUrl: http://localhost/MyWeb/Scripts/vendor/rxjs/util/isArray.js'.
SourceMap http://localhost/MyWeb/Scripts/vendor/rxjs/util/isObject.js.map read failed: One or more errors occurred..'iexplore.exe' (Script): Loaded 'eval code sourceUrl: http://localhost/MyWeb/Scripts/vendor/rxjs/util/isObject.js'.
SourceMap http://localhost/MyWeb/Scripts/vendor/rxjs/util/tryCatch.js.map read failed: One or more errors occurred..'iexplore.exe' (Script): Loaded 'eval code sourceUrl: http://localhost/MyWeb/Scripts/vendor/rxjs/util/tryCatch.js'.
SourceMap http://localhost/MyWeb/Scripts/vendor/rxjs/util/errorObject.js.map read failed: One or more errors occurred..'iexplore.exe' (Script): Loaded 'eval code sourceUrl: http://localhost/MyWeb/Scripts/vendor/rxjs/util/errorObject.js'.
我怀疑这是由于我正在使用的软件包,这是我的package.json,无法共享代码,因为它是一个大项目"依赖":{" @角度/动画":" ~4.0.3"," @ angular / common":" ^ 4.0.0"," @ angular /编译器":" ^ 4.0.0"," @ angular / core":" ^ 4.0.0"," @ angular / forms&# 34;:" ^ 4.0.0"," @ angular / http":" ^ 4.0.0"," @ angular / platform-browser&# 34;:" ^ 4.0.0"," @ angular / platform-browser-dynamic":" ^ 4.0.0"," @ angular / router":" ^ 4.0.0"," @ angular / upgrade":" ^ 4.0.0"," core-js&#34 ;:" ^ 2.4.1"," es6-shim":" ^ 0.35.3"," ng2-toastr":&# 34; ^ 4.0.1"," primeng":" ^ 2.0.2"," reflect-metadata":" ^ 0.1.10& #34;," rxjs":" ^ 5.3.0"," systemjs":" ^ 0.19.39"," zone.js":" ^ 0.8.4" }," devDependencies":{" gulp":" ^ 3.9.1","打字稿":" ^ 2.5.2& #34;,"打字":" ^ 1.5.0"," tslint":" ^ 5.1.0"," merge-stream":" ^ 1.0.1"," toastr":" ^ 2.1.2","下划线":& #34; ^ 1.8.3"," angular":" ^ 1.5.8"," jquery":" ^ 3.2.1&# 34;," @ types / core-js":" ^ 0.9.34"," @ types / jasmine":" ^ 2.5.35&# 34;," @ types / angular":" 1.5.8"," @ types / underscore":"",&#34 ; @ types / node":" ~6.0.60"," @ types / toastr":"" }}