Alberplz / angular2-color-picker

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

1.3.1 and latest angular-cli - "Cannot determine the module for class TextDirective" #98

Open gatapia opened 7 years ago

gatapia commented 7 years ago

After upgrading to 1.3.1 and using the new module import we get this error when we try to do a ng build ---prod:

ERROR in Cannot determine the module for class TextDirective in <path>/node_modules/angular2-color-picker/lib/color-picker.directive.ts!
Cannot determine the module for class SliderDirective in <path>/node_modules/angular2-color-picker/lib/color-picker.directive.ts!
Cannot determine the module for class DialogComponent in <path>/node_modules/angular2-color-picker/lib/color-picker.directive.ts!

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '<path>\src'
 @ ./src/main.ts 4:0-74
 @ multi ./src/main.ts

Are these directives/components missing from the color-picker module exports?

gifthlong commented 7 years ago

I am also getting this error when running ng-xi18n to try and generate the default messages.xlf

jhiemer commented 7 years ago

having exactly the same issue.

Anyone resolved it yet?

RalfGll commented 7 years ago

Having also the same issue.

jhiemer commented 7 years ago

@RalfGll use: ngx-color-picker. This should work.

nvkgismt commented 6 years ago

Having also the same issue. @RalfGll use: ngx-color-picker. error other

MatthewLHolden commented 6 years ago

Same. Any update on this?

banibanc commented 6 years ago

Same issue here. I'll try ngx-color-picker EDIT : it worked