Closed DorianGrey closed 8 years ago
The list of typescripts errors is rather long atm. (n.b.: although this log is from Windows, the same occurs on Ubuntu, thus it's not specific to a particular platform) :
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/app.component.ts:3:25
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/ng2-translate@2.4.1/ng2-translate.d.ts:1:37
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/ng2-translate@2.4.1/src/translate.service.d.ts:1:30
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/ng2-translate@2.4.1/src/translate.service.d.ts:2:22
TypeScript [Error] Cannot find module '@angular/http'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/ng2-translate@2.4.1/src/translate.service.d.ts:3:28
TypeScript [Error] Cannot find module 'rxjs/Observable'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/ng2-translate@2.4.1/src/translate.pipe.d.ts:1:75
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/app.routes.ts:1:36
TypeScript [Error] Cannot find module '@angular/router'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/inputTest/inputTest.component.ts:1:25
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/inputTest/inputTest.routes.ts:1:28
TypeScript [Error] Cannot find module '@angular/router'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/inputTest/input.module.ts:10:24
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/inputTest/input.module.ts:11:29
TypeScript [Error] Cannot find module '@angular/platform-browser'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@angular/forms@0.3.0/src/directives.d.ts:8:22
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@angular/forms@0.3.0/src/directives/abstract_form_group_directive.d.ts:8:35
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@angular/forms@0.3.0/src/directives/checkbox_value_accessor.d.ts:8:38
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@angular/forms@0.3.0/src/directives/default_value_accessor.d.ts:8:38
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@angular/forms@0.3.0/src/directives/control_value_accessor.d.ts:8:29
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@angular/forms@0.3.0/src/directives/ng_model.d.ts:8:53
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@angular/forms@0.3.0/src/directives/ng_model_group.d.ts:8:35
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@angular/forms@0.3.0/src/directives/reactive_directives/form_control_directive.d.ts:8:42
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@ngrx/store@2.1.2/reducer.d.ts:1:33
TypeScript [Error] Cannot find module 'rxjs/BehaviorSubject'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@ngrx/store@2.1.2/dispatcher.d.ts:1:33
TypeScript [Error] Cannot find module 'rxjs/BehaviorSubject'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@ngrx/store@2.1.2/state.d.ts:1:33
TypeScript [Error] Cannot find module 'rxjs/BehaviorSubject'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@ngrx/store@2.1.2/store.d.ts:2:26
TypeScript [Error] Cannot find module 'rxjs/Observer'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@ngrx/store@2.1.2/store.d.ts:3:28
TypeScript [Error] Cannot find module 'rxjs/Observable'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@ngrx/store@2.1.2/store.d.ts:4:26
TypeScript [Error] Cannot find module 'rxjs/Operator'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@ngrx/store@2.1.2/ng2.d.ts:5:50
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/jspm_packages/npm/@ngrx/core@1.0.2/operator/select.d.ts:1:28
TypeScript [Error] Cannot find module 'rxjs/Observable'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todo.service.spec.ts:4:8
TypeScript [Error] Cannot find module '@angular/core/testing'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todo.service.spec.ts:12:26
TypeScript [Error] Cannot find module 'rxjs/Observable'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todo.service.ts:4:26
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todo.service.ts:5:26
TypeScript [Error] Cannot find module 'rxjs/Observable'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todos.component.ts:1:36
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todos.component.ts:3:26
TypeScript [Error] Cannot find module 'rxjs/Observable'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todos.component.ts:25:3
TypeScript [Error] Member 'name' implicitly has an 'any' type. (TS7008)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todos.component.spec.ts:1:25
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todos.component.spec.ts:2:18
TypeScript [Error] Cannot find module '@angular/platform-browser'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todos.component.spec.ts:4:38
TypeScript [Error] Cannot find module '@angular/core/testing'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todos.module.ts:1:24
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todos.module.ts:2:29
TypeScript [Error] Cannot find module '@angular/platform-browser'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/app/todos/todos.routes.ts:2:28
TypeScript [Error] Cannot find module '@angular/router'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/main.dev.ts:4:38
TypeScript [Error] Cannot find module '@angular/platform-browser-dynamic'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/main.dev.ts:5:24
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/main.dev.ts:6:26
TypeScript [Error] Cannot find module '@angular/http'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/main.dev.ts:44:23
TypeScript [Error] Property 'take' does not exist on type 'Store<any>'. (TS2339)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/main.dev.ts:44:41
TypeScript [Error] Parameter 's' implicitly has an 'any' type. (TS7006)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/main.dev.ts:48:11
TypeScript [Error] Parameter 'ref' implicitly has an 'any' type. (TS7006)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/main.ts:4:38
TypeScript [Error] Cannot find module '@angular/platform-browser-dynamic'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/main.ts:5:40
TypeScript [Error] Cannot find module '@angular/core'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/main.ts:6:26
TypeScript [Error] Cannot find module '@angular/http'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/test-setup.ts:12:23
TypeScript [Error] Cannot find module '@angular/core/testing'. (TS2307)
TypeScript [Error] file:///D:/GitHub/ng2-jspm-template/src/test-setup.ts:16:8
TypeScript [Error] Cannot find module '@angular/platform-browser-dynamic/testing'. (TS2307)
@svi3c - any ideas? All kind of typings, regardless of whether they are mentioned in jspm.config.js or referenced via path in tsconfig.json, seem to be ignored, which doesn't make sense (it does not even break the build) - things work fine when running the app.
@DorianGrey the typescript errors can be resolved when you add the typings meta flag for the libs.
You just have to run jspm install
again afterwards. I just added them and it works for me.
This pull request should not be merged immediately, it's just a setup to better keep track what still has to be done, and what is already migrated.
After fighting jspm and Intellij for at least an hour (... rewritten configs without any kind of sense / mixing dependency links jspm_packages/node_modules, etc. ...), Had to revert the recent rxjs update due to version conflicts. I was able to bundle and start the application again. Not everything is working as expected (yet). The current state is mentioned below, and will be updated as soon as the topics are dealt with. Note: I'm currently amending the changes to the first commit, so don't wonder why it's still marked with "x days ago" Note: App is running again.
@NgModule
style.