This is a migrated thread and some comments may be shown as answers.

no exported member DialogsModule

7 Answers 2713 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chau
Top achievements
Rank 1
Chau asked on 26 Feb 2018, 05:51 PM

From the Dialogs Overview page of KendoUI with Angular, the dialog package should contain DialogModule and WindowModule.

However, I got an error when trying to import DialogsModule:

ErrorTS2305(TS) Module '"C:/ProjectFiles/.../node_modules/@progress/kendo-angular-dialog/dist/es/main"' has no exported member 'DialogsModule'.Apps

The DialogModule is there but not the WindowModule, which is the component I want to use.

I just got the latest install with my local RxJS version 5.5.6:

npm install --save @progress/kendo-angular-dialog @progress/kendo-angular-buttons @progress/kendo-angular-l10n @angular/animations.

Is there another package I need to install? Thanks.

7 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 27 Feb 2018, 08:01 AM
Hi Chau,

The Window component was introduced in the 2.0.0 version of the Dialogs package, but later updates and support for RxJS was introduced with versions 3.x:

https://www.telerik.com/kendo-angular-ui/components/dialogs/changelog/

Please make sure that you are using the latest versions of our packages (you might need to remove the package-lock.json file and the node_modules folder and run the respective NPM install commands again).

There is also a handy third-party NPM update tool available:

https://www.npmjs.com/package/npm-check-updates

npm install -g npm-check-updates
ncu -u -f /^@progress/

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Chau
Top achievements
Rank 1
answered on 27 Feb 2018, 04:00 PM

Hi Dimiter,

Thanks for helping me cleanup my local environment. The tool npm-check-updates is very helpful in specifying which installed version is behind.

I got the @progress/kendo-angular-dialog updated from 1.3.0 to 3.1.3, and could use the WindowModule in my application.

I noticed that the kendo-window is a non-modal dialog with a draggable property.  Do you know if the kendo-dialog has a similar property? 

Thanks!

0
Dimiter Madjarov
Telerik team
answered on 28 Feb 2018, 07:54 AM
Hi Chau,


The Dialog is non-draggable by design. However you could do the opposite - manually add an overlay div element to the page (for modality) and use the Window component, which is draggable. Here is an example of this.

https://plnkr.co/edit/UNKLR6lefzucLmb4a7VZ?p=preview

I hope this information helps.

Regards,
Dimiter Madjarov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Stefanos
Top achievements
Rank 1
answered on 16 Nov 2018, 12:29 PM

Hi Dimiter,

I have done your suggestion but i still get an error for @progress/kendo-angular-dialog.

Cant import it.I looked in my package-lock.json and i have all the other @/progress but only this one is missing.

Any idea?

Thank you in advance.

 

0
Dimiter Madjarov
Telerik team
answered on 19 Nov 2018, 08:39 AM
Hello Stefanos,


Could you provide further details about the exact error? Are you importing the DialogsModule or the DialogModule (as the Window is not provided in the second one)?

I am looking forward to hearing from you.

Regards,
Dimiter Madjarov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Stefanos
Top achievements
Rank 1
answered on 20 Nov 2018, 08:16 AM

Hello,thank you for the response.

I was trying to use Grid but the ng add @progress/kendo-angular-grid command does not get the Dialog dependence  .So i had to install it manually with npm i @progress/kendo-angular-dialog to solve the problem.

Regards,

Stefanos.

0
Dimiter Madjarov
Telerik team
answered on 21 Nov 2018, 08:01 AM
Hello Stefanos,


Yes, you are correct. This is needed, because the Dialog is not a dependency of the Grid.

Regards,
Dimiter Madjarov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Chau
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Chau
Top achievements
Rank 1
Dimiter Madjarov
Telerik team
Stefanos
Top achievements
Rank 1
Share this question
or