Angular 5问题' removeEventListener'在' EventTarget'只在prod构建。但是没有关于Dev构建的问题

时间:2018-01-03 15:40:35

标签: javascript angular webpack

控制台显示此

main.598d68d658cf204b66cd.bundle.js:1 ERROR TypeError: Failed to execute 'removeEventListener' on 'EventTarget': The callback provided as parameter 2 is not a function.
at r.(anonymous function).XMLHttpRequest.t.responseBlob.o.function.a.(anonymous function).r.(anonymous function).(anonymous function) [as __zone_symbol__open] (https://salty-fjord-85026.herokuapp.com/polyfills.62d8ac97edff2dddd48f.bundle.js:1:132920)
at https://salty-fjord-85026.herokuapp.com/polyfills.62d8ac97edff2dddd48f.bundle.js:1:142082
at r.(anonymous function).i.(anonymous function) [as open] (https://salty-fjord-85026.herokuapp.com/polyfills.62d8ac97edff2dddd48f.bundle.js:1:133379)
at t._subscribe (https://salty-fjord-85026.herokuapp.com/main.598d68d658cf204b66cd.bundle.js:1:647355)
at t._trySubscribe (https://salty-fjord-85026.herokuapp.com/main.598d68d658cf204b66cd.bundle.js:1:98272)
at t.subscribe (https://salty-fjord-85026.herokuapp.com/main.598d68d658cf204b66cd.bundle.js:1:98101)
at e.a (https://salty-fjord-85026.herokuapp.com/main.598d68d658cf204b66cd.bundle.js:1:695746)
at e._innerSub (https://salty-fjord-85026.herokuapp.com/main.598d68d658cf204b66cd.bundle.js:1:718260)
at e._tryNext (https://salty-fjord-85026.herokuapp.com/main.598d68d658cf204b66cd.bundle.js:1:718184)
at e._next (https://salty-fjord-85026.herokuapp.com/main.598d68d658cf204b66cd.bundle.js:1:718007) 

但部署成功

您可以访问网站dev server here

您可以在此处查看代码github

深入了解这个问题。

谢谢高级人员

0 个答案:

没有答案