webpack+angular2 error: Uncaught ReferenceError: __decorate is not defined

别说谁变了你拦得住时间么 提交于 2019-12-05 11:44:00

问题


chrome console error: Uncaught ReferenceError: __decorate is not defined this is code https://github.com/Dreampie/angular2-demo

run it:

npm install

npm run typings install

npm run start

open localhost:80 in browser

someone help?


回答1:


remove from tsconfig.json

"declaration": true,
"noEmitHelpers": false,
"isolatedModules": false


来源:https://stackoverflow.com/questions/36808303/webpackangular2-error-uncaught-referenceerror-decorate-is-not-defined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!