Alberplz / angular2-color-picker

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

ERROR in ColorPickerModule is not an NgModule #97

Open ghost opened 7 years ago

ghost commented 7 years ago

Not occurring with latest RC of angular-cli build tool.

AlMuIssues commented 7 years ago

+1

Error after updating ng-cli to 1.0.0: 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 /home/.../node_modules/angular2-color-picker/node_modules/@angula r/core/src/metadata/ng_module.d.ts

jrwiegand commented 7 years ago

I am having a similar issue but angular-cli is 1.0.0, only after updating angular libs to 4.0.0 (from 2.4.x) does the following error occur:

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 ../node_modules/angular2-color-picker/node_modules/@angular/core/src/metadata/ng_module.d.ts,
resolving symbol NgModule in ../node_modules/angular2-color-picker/node_modules/@angular/core/src/metadata.d.ts,
resolving symbol NgModule in ../node_modules/angular2-color-picker/node_modules/@angular/core/src/core.d.ts,
resolving symbol NgModule in ../node_modules/angular2-color-picker/node_modules/@angular/core/index.d.ts,
resolving symbol ColorPickerModule in ../node_modules/angular2-color-picker/lib/color-picker.module.ts,
resolving symbol ColorPickerModule in ../node_modules/angular2-color-picker/lib/color-picker.module.ts
akin2unde commented 7 years ago

@jrwiegand am having the same problem. Please were you able to resolve it

jrwiegand commented 7 years ago

@akin2unde I have simply kept angular back on 2.4.x until a fix is created.

akin2unde commented 7 years ago

@jrwiegand i was able to solve the problem by replace "angular2-color-picker": "1.3.1" to "angular2-color-picker": "zefoy/angular2-color-picker#aot-fixes" inside package.json

jrwiegand commented 7 years ago

That does seem to work but there are other warningd regarding angular 2.4.x not being installed (because angular 4.x.x is installed). I will wait until @Alberplz updates the package appropriately.

sconix commented 7 years ago

There is AOT compatible release of this library with angular-cli 1.x / Angular 4.x support with the name of ngx-color-picker.

Sacamano604 commented 7 years ago

@akin2unde this solved the issue for me. Thank you.

jrwiegand commented 7 years ago

Thank you @sconix that is working great.