Skip to content

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

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

Open
gatapia opened this issue Mar 27, 2017 · 7 comments

Comments

@gatapia
Copy link

gatapia commented Mar 27, 2017

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

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

@jhiemer
Copy link

jhiemer commented Apr 8, 2017

having exactly the same issue.

Anyone resolved it yet?

@RalfGll
Copy link

RalfGll commented Apr 21, 2017

Having also the same issue.

@jhiemer
Copy link

jhiemer commented Apr 21, 2017

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

@nvkgismt
Copy link

nvkgismt commented Jan 4, 2018

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

@MatthewLHolden
Copy link

Same. Any update on this?

@banibanc
Copy link

banibanc commented Mar 26, 2018

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

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

7 participants