17
votes

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?

2
"run it": No. Post a plunker, - drew moore
Could it run with webpack? and not support load from github. - Dreampie

2 Answers

40
votes

remove from tsconfig.json

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

This happened to me when creating the code sharing NativeScript https://docs.nativescript.org/angular/code-sharing/intro

but I only had to coment out this 2 lines:

    //"declaration": false,  
    //"noEmitHelpers": true,