Alberplz / angular2-color-picker

Angular 2 Color Picker Directive, no dependences required.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR in ColorPickerModule is not an NgModule

opened this issue · comments

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

+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

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

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

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

@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

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.

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

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

Thank you @sconix that is working great.