'ejs-grid' is not a known element

Hi,

I have an emergency issue.

In my Project, I use Angular 11 @syncfusion/ej2-angular-grids version 19.4.53. I upgraded that package to the latest version, and then the error below happened.

Image_6737_1699589763696

And all my codes got the red line (means that it errors). And I found out that almost Syncfusion packages got the same error, even if I didn't change anything of them. And all the syncfusion modules I imported to the  @NgModule  import [] got this error (for example with grid all module):
Image_9864_1699590536229

I downgraded that package to  version 19.4.53 and the error still existed. I tried to remove the node_modules file and then re-install all the packages, but nothing changed, the error still existed. Even if I clone my project from remote server again and then install packages,  the error still exists.

Note that, in my app.module.ts file, I imported that packaged:

import { GridAllModule } from '@syncfusion/ej2-angular-grids';

@NgModule({

  declarations: [ ... ],

  imports: [

      ...,

     GridAllModule 

  ],

  exports: [ ... ],

  providers: [ ... ]

})

Everything work well before I upgraded this package. And one thing is strange is that when I run this project with command "npm run dev", the web is still good; nothing errors on the website.

I'm so confused right now.

Can you help me ASAP? Thank you so much.

Kind Regards,

Nguyen


1 Reply

DM Dineshnarasimman Muthu Syncfusion Team November 20, 2023 01:28 PM UTC

Hi Nguyen,


Greetings from Syncfusion Support.


After reviewing your query, we understood that you are using Angular 11 and need to upgrade the syncfusion package. We suggest you to use ngcc tagged packages of syncfusion angular components for Angular version below 12. We have attached the documentation link of Angular compatibility where it is explained in detail.


Documentation link: https://ej2.syncfusion.com/angular/documentation/installation-and-upgrade/installation#angular-compatibility-compiled-package-ngcc


Please let us know if you need any further assistance.


Regards,

Dineshnarasimman M


Loader.
Up arrow icon