This repository was archived by the owner on Dec 4, 2017. It is now read-only.
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Webpack example does not work #2862
Closed
Description
I try to make this example https://angular.io/docs/ts/latest/guide/webpack.html
When I run npm start
I get this errors in terminal.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/common/src/directives/ng_class.d.ts:46:33
Cannot find name 'Set'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/common/src/pipes/async_pipe.d.ts:44:37
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/aot/compiler.d.ts:35:37
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/aot/compiler.d.ts:46:31
Cannot find name 'Map'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/aot/compiler.d.ts:62:86
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/aot/compiler_host.d.ts:18:32
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/compile_metadata.d.ts:369:29
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/compile_metadata.d.ts:415:29
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/compile_metadata.d.ts:416:19
Cannot find name 'Set'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/compile_metadata.d.ts:417:14
Cannot find name 'Set'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/compile_metadata.d.ts:418:245
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/directive_normalizer.d.ts:38:71
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/directive_normalizer.d.ts:40:73
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/i18n/extractor.d.ts:16:32
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/i18n/extractor.d.ts:25:34
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/jit/compiler.d.ts:44:48
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/jit/compiler.d.ts:46:64
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/metadata_resolver.d.ts:62:17
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/output/output_ast.d.ts:427:62
Cannot find name 'Set'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/resource_loader.d.ts:13:22
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/util.d.ts:26:17
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/compiler/src/util.d.ts:27:45
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/application_init.d.ts:16:17
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/application_ref.d.ts:106:66
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/application_ref.d.ts:122:100
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/application_ref.d.ts:148:66
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/application_ref.d.ts:150:100
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts:24:14
Cannot find name 'Map'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts:28:15
Cannot find name 'Map'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/di/reflective_provider.d.ts:88:122
Cannot find name 'Map'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/di/reflective_provider.d.ts:88:164
Cannot find name 'Map'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/facade/lang.d.ts:12:16
Cannot find name 'Map'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/facade/lang.d.ts:13:16
Cannot find name 'Set'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/linker/compiler.d.ts:53:48
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/linker/compiler.d.ts:61:64
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/linker/ng_module_factory_loader.d.ts:14:33
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/linker/system_js_ng_module_factory_loader.d.ts:28:24
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/core/src/util/lang.d.ts:8:52
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/http/src/headers.d.ts:52:58
Cannot find name 'Map'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/http/src/url_search_params.d.ts:46:15
Cannot find name 'Map'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/platform-browser-dynamic/src/resource_loader/resource_loader_impl.d.ts:10:22
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts:79:32
Cannot find name 'Map'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/platform-browser/src/dom/dom_adapter.d.ts:97:41
Cannot find name 'Map'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/platform-browser/src/dom/dom_renderer.d.ts:22:36
Cannot find name 'Map'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/router/src/config.d.ts:319:61
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/router/src/interfaces.d.ts:78:98
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/router/src/interfaces.d.ts:157:108
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/router/src/interfaces.d.ts:227:114
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/router/src/interfaces.d.ts:297:90
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/router/src/interfaces.d.ts:367:49
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/router/src/router.d.ts:393:69
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/router/src/router.d.ts:415:58
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/@angular/router/src/utils/collection.d.ts:35:57
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/rxjs/Observable.d.ts:10:65
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/rxjs/Observable.d.ts:66:59
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/rxjs/Observable.d.ts:66:69
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/rxjs/observable/PromiseObservable.d.ts:40:30
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/rxjs/observable/PromiseObservable.d.ts:41:25
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/rxjs/operator/toPromise.d.ts:7:58
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/rxjs/operator/toPromise.d.ts:7:68
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/rxjs/operator/toPromise.d.ts:9:8
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/rxjs/operator/toPromise.d.ts:10:25
Cannot find name 'Promise'.
ERROR in [default] ~/web-projects/newyear/web-app/node_modules/rxjs/operator/toPromise.d.ts:10:35
Cannot find name 'Promise'.
I checked my code it the same like this https://github.com/angular/angular.io/tree/master/public/docs/_examples/webpack/ts
Metadata
Metadata
Assignees
Labels
No labels