-
Notifications
You must be signed in to change notification settings - Fork 111
Colorpicker crashes the building process #156
Comments
@imichelakos Which version do you use? You should probably update to the latest version of md2. |
@dahaupt I m using "md2": "0.0.16". Isn't that the latest one? |
@imichelakos The newest one (especially for Angular4) is 0.0.18 as you can see in the Changelog. |
@dahaupt Which is the latest for Angular 2? I have just finished my project and i don't want to get into migration. Or else could you please tell me how to remove the unused components of md2 |
@imichelakos You should use 0.0.18 as well, it's just compatible to Angular4 but fixed several other bugs. |
@dahaupt New error : ".../md2/core/overlay/scroll/scroll-dispatcher.d.ts (9,42): Initializers are not allowed in ambient contexts." |
@imichelakos Which version of TypeScript do you use? |
"typescript": "~2.0.3" |
also i had the error ├── UNMET PEER DEPENDENCY @angular/[email protected] |
Those npm peer dependency warnings are most likely not the reason for those errors. You could try a more recent Typescript version like ~2.2.1 and do a clean install for that test. I never got that issue but I've read about it here: angular/angular-cli#5693 |
@dahaupt No lack at all... How can i remove this colorpicker...i don't even use it in my app |
I'm not sure if you are able to do that because we can just import the whole md2module, can I clone your project to get a look into it? Otherwise it's really difficult to debug it. |
@dahaupt unfortunately i can't share this project because it is a private one. |
@imichelakos which components you have used of MD2? also you can inject individual components in your project as per your requirement. |
@dharmeshpipariya I only use date-picker. How can i inject it individual to my project? |
@imichelakos you can import separately component as following code:
|
@dharmeshpipariya After importing separately the date-picker the problem persists (version 0.17 - Typescript 2.2.1)... Version 0.18 prompts Angular 4 as required ERROR in .../src/$$_gendir/node_modules/md2/colorpicker/colorpicker.ngfactory.ts (249,41): Property 'inputFocused' does not exist on type 'Md2Colorpicker'. Why it stills give me that error? |
@imichelakos you have to update it with Angular4 and MD2 - 0.0.18 |
Just migrated to Angular4 and MD2 - 0.0.18. Building process completes but now date-picker doesn't pop up which is probably an other issue |
we have provided 'cntainer' property for 'inline' or 'popup' view please refer API doc of datepicker |
I also added [openOnFocus] = "true". I think this feature should be the default value |
@imichelakos No, I am telling about 'container' property of it, you can see it in our demo too with change bottom select dropdown and see the design changes. |
After running ng build --prod the following error occurs
...src/$$_gendir/node_modules/md2/colorpicker/colorpicker.ngfactory.ts (1170,9): Type 'QueryList' is not assignable to type 'Portal'.
Property '_attachedHost' is missing in type 'QueryList'.
I don't even use colorpicker in my app. How i can remove it?
The text was updated successfully, but these errors were encountered: