apollo-angular
apollo-angular copied to clipboard
AOT Compilation bug
During build (In AOT mode only) My setup angular2 project + apollo-client.
App have following errors
ERROR in /home/fmatuszewski/Projects/trails-core/trails-polymer/node_modules/@types/graphql/execution/execute.d.ts
(1,44): error TS2307: Cannot find module '../error'.
ERROR in /home/fmatuszewski/Projects/trails-core/trails-polymer/node_modules/@types/graphql/index.d.ts
(15,15): error TS2307: Cannot find module './type'.
ERROR in /home/fmatuszewski/Projects/trails-core/trails-polymer/node_modules/@types/graphql/index.d.ts
(19,15): error TS2307: Cannot find module './language'.
ERROR in /home/fmatuszewski/Projects/trails-core/trails-polymer/node_modules/@types/graphql/index.d.ts
(28,8): error TS2307: Cannot find module './execution'.
ERROR in /home/fmatuszewski/Projects/trails-core/trails-polymer/node_modules/@types/graphql/index.d.ts
(36,8): error TS2307: Cannot find module './validation'.
Project includes many over dependencies and build fine without apollo-angular dependency. Project gives this error only with AOT compilation (production mode)
I would consider this bug critical, since angular 2 projects couldn't be build in production with apollo-angular.
"apollo-angular": "^0.13.0",
"apollo-client": "^1.9.0-1",
"@angular/animations": "4.0.1",
"@angular/common": "4.0.1",
"@angular/compiler": "4.0.1",
"@angular/compiler-cli": "4.0.1",
"@angular/core": "4.0.1",
"@angular/forms": "4.0.1",
"@angular/http": "4.0.1",
"@angular/platform-browser": "4.0.1",
"@angular/platform-browser-dynamic": "4.0.1",
"@angular/platform-server": "4.0.1",
"@angular/router": "4.0.1",
"@angular/cli": "1.2.6",
HI can you provide steps how you solved this issue ?