deeleman / learning-angular2

Code samples repository for the examples provided in "Learning Angular 2", published by Packt Publishing - THE BOOK COVERS UP TO RC.1 and hence is severely OUTDATED. PLEASE REFER TO THE LATEST EDITIONS INSTEAD.
https://www.packtpub.com/web-development/learning-angular-2
108 stars 59 forks source link

Issue at chapter01 #52

Closed OlegRasskazov closed 7 years ago

OlegRasskazov commented 7 years ago

import bootstrap module doesn't work. I got error TS2305. for a solution I have addressed to https://angular.io/docs/ts/latest/guide/ngmodule.html#!#bootstrap

demr commented 7 years ago

Other:

typings install es6-shim --ambient --save typings ERR! deprecated The "ambient" flag is deprecated. Please use "global" instead

typings install es6-shim --global --save typings ERR! message Unable to find "es6-shim" ("npm") in the registry. typings ERR! message However, we found "es6-shim" for 1 other source: "dt" typings ERR! message You can install these using the "source" option. typings ERR! message We could use your help adding these typings to the registry: https://github.com/typings/registry typings ERR! caused by https://api.typings.org/entries/npm/es6-shim/versions/latest responded with 404, expected it to equal 200

Another way to do that? Is it necessary?

deeleman commented 7 years ago

Thanks for pointing out a workaround for this @OlegRasskazov

@demr Your issue is a dupe of #10

In any event, I'd advice you on installing typings from npm instead. You can find more info at:

https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/