webpack + angular2错误:未捕获ReferenceError:__decorate未定义 [英] webpack+angular2 error: Uncaught ReferenceError: __decorate is not defined
本文介绍了webpack + angular2错误:未捕获ReferenceError:__decorate未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
chrome控制台错误:未捕获ReferenceError:__decorate未定义 这是代码 https://github.com/Dreampie/angular2-demo
chrome console error: Uncaught ReferenceError: __decorate is not defined this is code https://github.com/Dreampie/angular2-demo
运行它:
npm安装
npm运行键入install
npm run typings install
npm运行开始
在浏览器中打开localhost:80
open localhost:80 in browser
有人帮忙吗?
推荐答案
从tsconfig.json删除
remove from tsconfig.json
"declaration": true,
"noEmitHelpers": false,
"isolatedModules": false
这篇关于webpack + angular2错误:未捕获ReferenceError:__decorate未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文