Alberplz / angular2-color-picker

Angular 2 Color Picker Directive, no dependences required.
MIT License
185 stars 82 forks source link

Error when using with angular-cli and ng start #79

Open chrishawn opened 7 years ago

chrishawn commented 7 years ago

ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol NgModule in /Projects/admin/node_modules/angular2-color-picker/node_modules/@angular/core/src/metadata/ng_module.d.ts, resolving symbol NgModule in /Projects/admin/node_modules/angular2-color-picker/node_modules/@angular/core/src/metadata.d.ts, resolving symbol NgModule in /Projects/admin/node_modules/angular2-color-picker/node_modules/@angular/core/src/core.d.ts, resolving symbol NgModule in /Projects/admin/node_modules/angular2-color-picker/node_modules/@angular/core/index.d.ts, resolving symbol ColorPickerModule in /Projects/admin/node_modules/angular2-color-picker/lib/color-picker.module.ts, resolving symbol ColorPickerModule in /Projects/admin/node_modules/angular2-color-picker/lib/color-picker.module.ts angular dependency packages maybe need to be upgraded?

chrishawn commented 7 years ago

I suspect this is related to issue #74 where it seems it is not AOT compatible yet

chrishawn commented 7 years ago

yup got past it by using his branch "angular2-color-picker": "zefoy/angular2-color-picker#aot-fixes",

born2net commented 7 years ago

I am getting


ERROR in Cannot determine the module for class TextDirective in C:/msweb/studioweb/node_modules/angular2-color-picker/lib/color-picker.directive.ts!
Cannot determine the module for class SliderDirective in C:/msweb/studioweb/node_modules/angular2-color-picker/lib/color-picker.directive.ts!
Cannot determine the module for class DialogComponent in C:/msweb/studioweb/node_modules/angular2-color-picker/lib/color-picker.directive.ts!

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './locale/app/app-module.ngfactory' in 'C:\msweb\studioweb\src'
 @ ./src/main.ts 6:0-71
 @ multi ./src/main.ts

I guess due to AOT not supported yet...