byavv / angular2-elastic

Angular2 elasticsearch, autocomplete sample
36 stars 17 forks source link

Doesn't build #10

Closed georgeedwards closed 8 years ago

georgeedwards commented 8 years ago

I think this looks like the angular breaking changes, although you've pinned the dependancies, so I wouldn't have throught this would be a problem. However, when I try to run this on my Windows machine, this is the output I get:

> angular2-elastic@0.0.1 dev C:\Users\George\Source\Repos\angular2-elastic
> webpack-dev-server --inline --progress --profile --colors --watch --display-error-details --display-cached  --content-base build
                                                                                                       70% 2/2 build modules http://localhost:3030/
webpack result is served from /build/
content is served from C:\Users\George\Source\Repos\angular2-elastic\build                             32% 3/8 build modulests-loader: Using typescript@1.8.10 and C:\Users\George\Source\Repos\angular2-elastic\tsconfig.js4413ms1147ms optimi98ms emit

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\router_config_loader.d.ts
(8,56): error TS2305: Module '"C:/Users/George/Source/Repos/angular2-elastic/node_modules/@angular/core/index"' has no exported member 'NgModuleFactoryLoader'.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\router_module.d.ts
(9,46): error TS2305: Module '"C:/Users/George/Source/Repos/angular2-elastic/node_modules/@angular/core/index"' has no exported member 'ModuleWithProviders'.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\router_module.d.ts
(9,67): error TS2305: Module '"C:/Users/George/Source/Repos/angular2-elastic/node_modules/@angular/core/index"' has no exported member 'NgModuleFactoryLoader'.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\router_state.d.ts
(48,75): error TS2315: Type 'Type' is not generic.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\router_state.d.ts
(49,83): error TS2315: Type 'Type' is not generic.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\router_state.d.ts
(103,16): error TS2315: Type 'Type' is not generic.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\router_state.d.ts
(186,16): error TS2315: Type 'Type' is not generic.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\router.d.ts
(9,30): error TS2305: Module '"C:/Users/George/Source/Repos/angular2-elastic/node_modules/@angular/core/index"' has no exported member 'NgModuleFactoryLoader'.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\router.d.ts
(280,36): error TS2315: Type 'Type' is not generic.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\config.d.ts
(279,50): error TS2315: Type 'Type' is not generic.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\config.d.ts
(279,70): error TS2315: Type 'Type' is not generic.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\config.d.ts
(279,94): error TS2315: Type 'Type' is not generic.

ERROR in C:\Users\George\Source\Repos\angular2-elastic\node_modules\@angular\router\src\config.d.ts
(294,17): error TS2315: Type 'Type' is not generic.

ERROR in ./src/app/routes.ts
(1,10): error TS2305: Module '"C:/Users/George/Source/Repos/angular2-elastic/node_modules/@angular/router/index"' has no exported member 'provideRouter'.

ERROR in ./src/app/routes.ts
(1,25): error TS2305: Module '"C:/Users/George/Source/Repos/angular2-elastic/node_modules/@angular/router/index"' has no exported member 'RouterConfig'.

ERROR in ./src/app/client.component.ts
(4,10): error TS2305: Module '"C:/Users/George/Source/Repos/angular2-elastic/node_modules/@angular/router/index"' has no exported member 'ROUTER_DIRECTIVES'.

ERROR in ./src/app/app.ts
(4,10): error TS2305: Module '"C:/Users/George/Source/Repos/angular2-elastic/node_modules/@angular/router/index"' has no exported member 'ROUTER_DIRECTIVES'.

ERROR in ./src/app/admin.component.ts
(2,10): error TS2305: Module '"C:/Users/George/Source/Repos/angular2-elastic/node_modules/@angular/router/index"' has no exported member 'ROUTER_DIRECTIVES'.
Child html-webpack-plugin for "index.html":

webpack: bundle is now VALID.
byavv commented 8 years ago

Thanks I'll take a look. It should be updated to 2.0

Hypocrite commented 8 years ago

Similar issue with OS X.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/router_config_loader.d.ts
(8,56): error TS2305: Module '"/Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/core/index"' has no exported member 'NgModuleFactoryLoader'.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/router_preloader.d.ts
(8,30): error TS2305: Module '"/Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/core/index"' has no exported member 'NgModuleFactoryLoader'.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/router_module.d.ts
(9,46): error TS2305: Module '"/Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/core/index"' has no exported member 'ModuleWithProviders'.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/router_module.d.ts
(9,67): error TS2305: Module '"/Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/core/index"' has no exported member 'NgModuleFactoryLoader'.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/router_state.d.ts
(48,75): error TS2315: Type 'Type' is not generic.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/router_state.d.ts
(49,83): error TS2315: Type 'Type' is not generic.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/router_state.d.ts
(103,16): error TS2315: Type 'Type' is not generic.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/router_state.d.ts
(186,16): error TS2315: Type 'Type' is not generic.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/router.d.ts
(9,30): error TS2305: Module '"/Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/core/index"' has no exported member 'NgModuleFactoryLoader'.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/router.d.ts
(280,36): error TS2315: Type 'Type' is not generic.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/config.d.ts
(279,50): error TS2315: Type 'Type' is not generic.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/config.d.ts
(279,70): error TS2315: Type 'Type' is not generic.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/config.d.ts
(279,94): error TS2315: Type 'Type' is not generic.

ERROR in /Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/src/config.d.ts
(294,17): error TS2315: Type 'Type' is not generic.

ERROR in ./src/app/routes.ts
(1,10): error TS2305: Module '"/Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/index"' has no exported member 'provideRouter'.

ERROR in ./src/app/routes.ts
(1,25): error TS2305: Module '"/Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/index"' has no exported member 'RouterConfig'.

ERROR in ./src/app/client.component.ts
(4,10): error TS2305: Module '"/Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/index"' has no exported member 'ROUTER_DIRECTIVES'.

ERROR in ./src/app/app.ts
(4,10): error TS2305: Module '"/Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/index"' has no exported member 'ROUTER_DIRECTIVES'.

ERROR in ./src/app/admin.component.ts
(2,10): error TS2305: Module '"/Users/Hypocrite/Repositories/angular2-elastic/node_modules/@angular/router/index"' has no exported member 'ROUTER_DIRECTIVES'.
Child html-webpack-plugin for "index.html":
+ 1 hidden modules

Any update on the fix?

byavv commented 8 years ago

@Hypocrite, @georgeedwards, sorry for the delay in replying. Updated to @angular 2.1.0, webpack 2.beta-25. All works fine.