Giter Club home page Giter Club logo

tour-of-heroes-webpack's Introduction

Description

Angular 2 starter kit featuring the official Tour of Heroes tutorial (link) and Webpack. Up to date with Angular 4.x and TypeScript 2.

Demo

Requirements

Getting started

git clone https://github.com/michaelbazos/angular2-starter.git

cd angular2-starter

npm install

npm start

The application is served at http://localhost:3000 in watch mode.

Features

  • Angular
  • Angular Router
  • Typescript
  • Webpack 2
  • Live Reload

License

MIT

tour-of-heroes-webpack's People

Contributors

michaelbazos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tour-of-heroes-webpack's Issues

error TS2304: Cannot find name 'Promise'

Hi @michaelbazos!
Great work!

I wanted to use it to play around but unfortunately I can't start application.
Logs of npm start are below

running on Windows 10
node 6.9.5
npm 3.10.10

Can you please point me what have I done wrong?

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\i18n\extractor.d.ts
(14,33): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\i18n\extractor.d.ts
(22,35): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\jit\compiler.d.ts
(44,49): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\jit\compiler.d.ts
(46,65): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\aot\compiler_host.d.ts
(20,33): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\util.d.ts
(33,18): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\util.d.ts
(34,46): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\resource_loader.d.ts
(13,23): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\directive_normalizer.d.ts
(38,72): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\directive_normalizer.d.ts
(40,74): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\metadata_resolver.d.ts
(58,104): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\output\output_ast.d.ts
(433,63): error TS2304: Cannot find name 'Set'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\aot\compiler.d.ts
(32,38): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\aot\compiler.d.ts
(44,32): error TS2304: Cannot find name 'Map'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\compile_metadata.d.ts
(342,20): error TS2304: Cannot find name 'Set'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\compile_metadata.d.ts
(344,28): error TS2304: Cannot find name 'Set'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\compile_metadata.d.ts
(346,15): error TS2304: Cannot find name 'Set'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\compile_metadata.d.ts
(348,23): error TS2304: Cannot find name 'Set'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\compile_metadata.d.ts
(350,17): error TS2304: Cannot find name 'Set'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\compiler\src\compile_metadata.d.ts
(352,25): error TS2304: Cannot find name 'Set'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\platform-browser-dynamic\src\resource_loader\resource_loader_impl.d.ts
(10,23): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\platform-browser\src\dom\shared_styles_host.d.ts
(11,30): error TS2304: Cannot find name 'Set'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\platform-browser\src\dom\shared_styles_host.d.ts
(22,30): error TS2304: Cannot find name 'Set'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\platform-browser\src\dom\dom_renderer.d.ts
(22,37): error TS2304: Cannot find name 'Map'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\platform-browser\src\dom\dom_adapter.d.ts
(97,42): error TS2304: Cannot find name 'Map'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\platform-browser\src\browser\browser_adapter.d.ts
(79,33): error TS2304: Cannot find name 'Map'.

ERROR in D:\projects\angular\angular2-starter\node_modules\rxjs\operator\toPromise.d.ts
(2,60): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\rxjs\operator\toPromise.d.ts
(3,79): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\rxjs\operator\toPromise.d.ts
(3,89): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\http\src\url_search_params.d.ts
(46,16): error TS2304: Cannot find name 'Map'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\http\src\headers.d.ts
(52,59): error TS2304: Cannot find name 'Map'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\router\src\utils\collection.d.ts
(36,79): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\router\src\interfaces.d.ts
(78,99): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\router\src\interfaces.d.ts
(157,109): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\router\src\interfaces.d.ts
(227,115): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\router\src\interfaces.d.ts
(297,89): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\router\src\interfaces.d.ts
(367,50): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\router\src\router.d.ts
(392,70): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\router\src\router.d.ts
(414,59): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\common\src\pipes\async_pipe.d.ts
(44,38): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\common\src\directives\ng_class.d.ts
(48,34): error TS2304: Cannot find name 'Set'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\router\src\config.d.ts
(307,85): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\util\lang.d.ts
(12,53): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\linker\system_js_ng_module_factory_loader.d.ts
(28,25): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\linker\ng_module_factory_loader.d.ts
(14,34): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\rxjs\Observable.d.ts
(69,60): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\rxjs\Observable.d.ts
(69,70): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\change_detection\differs\default_keyvalue_differ.d.ts
(24,15): error TS2304: Cannot find name 'Map'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\change_detection\differs\default_keyvalue_differ.d.ts
(28,16): error TS2304: Cannot find name 'Map'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\linker\compiler.d.ts
(53,49): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\linker\compiler.d.ts
(61,65): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\application_init.d.ts
(16,18): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\application_ref.d.ts
(116,76): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\application_ref.d.ts
(132,110): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\application_ref.d.ts
(158,67): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\application_ref.d.ts
(160,101): error TS2304: Cannot find name 'Promise'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\facade\lang.d.ts
(12,17): error TS2304: Cannot find name 'Map'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\facade\lang.d.ts
(13,17): error TS2304: Cannot find name 'Set'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\di\reflective_provider.d.ts
(87,123): error TS2304: Cannot find name 'Map'.

ERROR in D:\projects\angular\angular2-starter\node_modules\@angular\core\src\di\reflective_provider.d.ts
(87,165): error TS2304: Cannot find name 'Map'.

ERROR in ./src/app/hero/hero.service.ts
(16,16): error TS2304: Cannot find name 'Promise'.

ERROR in ./src/app/hero/hero.service.ts
(24,24): error TS2304: Cannot find name 'Promise'.

ERROR in ./src/app/hero/hero.service.ts
(32,23): error TS2304: Cannot find name 'Promise'.

ERROR in ./src/app/hero/hero.service.ts
(40,25): error TS2304: Cannot find name 'Promise'.

ERROR in ./src/app/hero/hero.service.ts
(48,23): error TS2304: Cannot find name 'Promise'.

ERROR in ./src/app/hero/hero.service.ts
(57,36): error TS2304: Cannot find name 'Promise'.

ERROR in ./src/app/hero/hero.service.ts
(59,12): error TS2304: Cannot find name 'Promise'.

ERROR in ./src/app/hero-detail/hero-detail.component.ts
(27,26): error TS2322: Type '{}' is not assignable to type 'Hero'.

ERROR in ./src/app/hero-detail/hero-detail.component.ts
(27,26): error TS2322: Type '{}' is not assignable to type 'Hero'.
  Property 'id' is missing in type '{}'.
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 540 kB [rendered]
        [0] ./~/html-webpack-plugin/lib/loader.js!./src/index.html 538 bytes {0} [built]
        [1] ./~/lodash/lodash.js 540 kB {0} [built]
        [2] (webpack)/buildin/module.js 251 bytes {0} [built]
webpack: Failed to compile.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.