angular2-packaging
angular2-packaging copied to clipboard
When run npm run tsc I get lots of ES6 shim errors in git bash
When run npm run tsc I get lots of ES6 shim errors in git bash
I then installed npm install -g typescript. And got this git bash error: "Unknown compiler option 'moduleResolution' "
There are several problems here:
- You need to exclude
typings/mainandtypings/main.d.tswithin the tscconfig.json file
{
"compilerOptions": {
(...)
},
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
]
}
- You only need to use es6-shim in the
typings.jsonfile.
{
"ambientDependencies": {
"es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#7de6c3dd94feaeb21f20054b9f30d5dabc5efabd"
}
}