angular-material-components icon indicating copy to clipboard operation
angular-material-components copied to clipboard

Cannot read property 'members' of undefined for NgxMatColorPickerModule

Open pkojchevski opened this issue 4 years ago • 13 comments

ERROR in Cannot read property 'members' of undefined for NgxMatColorPickerModule.

pkojchevski avatar Jun 26 '20 20:06 pkojchevski

I got this issue after upgrading to angular 10. It seems that I had entryComponent left in my modules. I got rid of the and then no more of this error.

wmehanna avatar Jul 07 '20 04:07 wmehanna

@wmehanna @pkojchevski If you use Angular 10, can you check the version v4.0.0 out ? I think that this bug is fixed in latest version

npm install --save  @angular-material-components/[email protected]

h2qutc avatar Jul 07 '20 18:07 h2qutc

I have this error using Angular 8. I'm not able to upgrade to Angular 10 at the moment. Is there a possible work around? If I try to get a production build. The error is more verbose: ERROR in Unexpected value 'undefined' exported by the module 'NgxMatColorPickerModule in D:/MyApp/node_modules/@angular-material-components/color-picker/angular-material-components-color-picker.d.ts'

toarnold avatar Jul 29 '20 13:07 toarnold

i also was not able to upgrade to 10...

pkojchevski avatar Jul 29 '20 20:07 pkojchevski

Even I am having a similar issue. I am using Angular 7 ng build- cannot read property 'members' of undefined ng build prod- ERROR in Unexpected value 'undefined' exported by the module 'NgxMatColorPickerModule in ....(My Project Path).../node_modules/@angular-material-components/color-picker/angular-material-components-color-picker.d.ts'

Please help. Thanks.

manvithareddy17 avatar Jul 30 '20 14:07 manvithareddy17

@toarnold @pkojchevski Did you try the version v4.0.0 that supports Angular 10 ? @manvithareddy17 Can you let me know which version of @angular-material-components/color-picker that you used plz?

h2qutc avatar Jul 30 '20 21:07 h2qutc

i can not upgrade the project to angular10

pkojchevski avatar Jul 30 '20 22:07 pkojchevski

Yes. I have tried updating to 4.0.0! But got the similar issue. Tried deleting and reinstalling as well. But no luck.

Thanks, Manvitha

On Thu, Jul 30, 2020 at 5:44 PM hqho [email protected] wrote:

@toarnold https://github.com/toarnold Did you try the version v4.0.0 that supports Angular 10 ? @manvithareddy17 https://github.com/manvithareddy17 Can you let me know which version of @angular-material-components/color-picker that you used plz?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/h2qutc/angular-material-components/issues/68#issuecomment-666724775, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALXD5IDHA6BH2R5FV623YV3R6HSVTANCNFSM4OJUC3EA .

manvithareddy17 avatar Jul 30 '20 23:07 manvithareddy17

Did you try the version v4.0.0 that supports Angular 10 ?

Yes, I tried ALL awailable versions, but the result is the same.

toarnold avatar Aug 01 '20 05:08 toarnold

I have build a small repro scenario. ng server and ng build leads to ERROR in Cannot read property 'members' of undefined ColorPickerDemo.zip

toarnold avatar Aug 05 '20 05:08 toarnold

I guess nobody plan to look into this.. So guys, I have to spend 3 hours to reimplement the color-picker functionality using this fantasctic plugin and I can suggest all of you t odo the same

AndreyChayko avatar Sep 13 '20 18:09 AndreyChayko

Are there any updates on this error? I'm on angular version 7 with color picker version 2.0.2. Still getting that error. On ng serve after a file was changed and it was triggered to recompile the changes the import is working and the error is gone. Somebody knows a solution?

Hash: 7aef861966dabda45424
Time: 10887ms
chunk {main} main.js, main.js.map (main) 1.9 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 93.2 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 194 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 727 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 328 kB [initial] [rendered]

ERROR in Cannot read property 'members' of undefined
i 「wdm」: Failed to compile.

edit:

I think i found a solution. I changed the import path to the bundles file.

import { MAT_COLOR_FORMATS, NgxMatColorPickerModule, NGX_MAT_COLOR_FORMATS } from '@angular-material-components/color-picker/bundles/angular-material-components-color-picker.umd';

Everything else stays the same.

Then the compile error disappears and everything works just fine for me.

edit:

never mind. For non prod build this works find until you try to build the application ... we now moved to the default color picker of the browsers.

digital195 avatar Feb 02 '21 17:02 digital195

any updates on this ?

mehul-warhousing1 avatar Mar 18 '24 12:03 mehul-warhousing1