angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Change typings.json to use 'global' instead of ambient'

Open alexkibler opened this issue 10 years ago • 4 comments

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Windows 10
  1. Versions. Please run ng --version. If there's nothing outputted, please 1.0.0-beta.4
  2. Repro steps. Was this an app that wasn't created using the CLI? What change did you do on your code? etc. typings install

Typings install does not install the d.ts files because it's expecting the typings.json file to have globalDependencies as opposed to ambientDependencies, as it is now.

See the typings changelog

alexkibler avatar May 19 '16 17:05 alexkibler

There is a local typings install that is not yet updated to the latest typings version.

To run the local one, you can either do npm install, npm run postinstall or $(npm bin)/typings install.

We plan to update to the latest one though.

filipesilva avatar May 19 '16 18:05 filipesilva

Ahh, that would do it. Since typings doesn't obey the npm proxy rules, I have to set up a .typingsrc with rejectUnauthorized:false, but since that's not there at the start of a new project, it wasn't able to run typings. Thanks!

alexkibler avatar May 19 '16 18:05 alexkibler

For other readers: Please not that the change from ambient to global is held back for now for the reasons explained by @filipesilva in https://github.com/angular/angular-cli/issues/816#issuecomment-223760011

We're actually holding off on the typing 1.0 upgrade for now, because we're aiming at moving directly to @types and don't want to do two typings related breaking changes in a row.

jesperronn avatar Jun 10 '16 06:06 jesperronn

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.