angular-material-components
angular-material-components copied to clipboard
Cannot read property 'members' of undefined for NgxMatColorPickerModule
ERROR in Cannot read property 'members' of undefined for NgxMatColorPickerModule.
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 @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]
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'
i also was not able to upgrade to 10...
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.
@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?
i can not upgrade the project to angular10
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 .
Did you try the version v4.0.0 that supports Angular 10 ?
Yes, I tried ALL awailable versions, but the result is the same.
I have build a small repro scenario. ng server
and ng build
leads to
ERROR in Cannot read property 'members' of undefined
ColorPickerDemo.zip
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
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.
any updates on this ?