Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR in ColorPickerModule is not an NgModule #97

Open
ghost opened this issue Mar 21, 2017 · 9 comments
Open

ERROR in ColorPickerModule is not an NgModule #97

ghost opened this issue Mar 21, 2017 · 9 comments

Comments

@ghost
Copy link

ghost commented Mar 21, 2017

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

@AlMuIssues
Copy link

+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
Copy link

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
Copy link

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

@jrwiegand
Copy link

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

@akin2unde
Copy link

@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
Copy link

jrwiegand commented Mar 28, 2017

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
Copy link
Contributor

sconix commented Mar 30, 2017

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
Copy link

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

@jrwiegand
Copy link

Thank you @sconix that is working great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants