DialogService "Class constructor fe cannot be invoked without 'new'"

1 Answer 153 Views
Dialog
Sebastian
Top achievements
Rank 1
Sebastian asked on 17 Mar 2022, 07:58 PM

Hi people, I hope you can help me

I tried to reply this functionality in my proyect: (I used the same code)

https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-single-component-rendering

but I get this error message on browser console:  "Class constructor fe cannot be invoked without 'new'."

I have tried to change the "ES2015" target to something else, but nothing works.

Any other idea? thanks in advanced.

 

Angular CLI: 11.1.3
Node: 16.13.0
OS: win32 x64

Angular: 11.1.2
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes

Package                                            Version
---------------------------------------------------------
@angular-devkit/architect              0.1101.3
@angular-devkit/build-angular      0.1101.3
@angular-devkit/core                      11.1.3
@angular-devkit/schematics          11.1.3
@angular/cli                                      11.1.3
@schematics/angular                      11.1.3
@schematics/update                      0.1101.3
ng-packagr                                       11.1.3
rxjs                                                    6.6.3
typescript                                         4.1.3

 

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 22 Mar 2022, 07:48 AM

Hello Sebastian,

We've already discussed this case in a private support thread. But since this one is public, I will share the same information here to help the community if a similar issue was faced.

 

"Indeed the experienced error is not directly related to the built-in API for the Dialog component but is rather connected to the project configurations and how the code is transpiled. Please check the following StackOverflow thread:

https://stackoverflow.com/a/51860850/10469244

For convenience, I prepared a runnable Angular 11 project representing the example from this article.

To run the application:

  1. Download and unzip the folder.
  2. Run npm install.
  3. Execute ng serve command"

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Dialog
Asked by
Sebastian
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or