Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When run npm run tsc I get lots of ES6 shim errors in git bash #1

Open
markoddi01 opened this issue May 12, 2016 · 2 comments
Open

Comments

@markoddi01
Copy link

markoddi01 commented May 12, 2016

error1
When run npm run tsc I get lots of ES6 shim errors in git bash

@markoddi01
Copy link
Author

I then installed npm install -g typescript. And got this git bash error: "Unknown compiler option 'moduleResolution' "

@templth
Copy link
Owner

templth commented May 18, 2016

There are several problems here:

  • You need to exclude typings/main and typings/main.d.ts within the tscconfig.json file
{
  "compilerOptions": {
    (...)
  },
  "exclude": [
    "node_modules",
    "typings/main",
    "typings/main.d.ts"
  ]
}
  • You only need to use es6-shim in the typings.json file.
{
  "ambientDependencies": {
    "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#7de6c3dd94feaeb21f20054b9f30d5dabc5efabd"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants