We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

New ASP.NET Core Angular application can't find "ej"

I'm trying to upgrade my project, and it can't find the "ej" namespace. I've tried again with a brand new project to test this, and it still happens (see attached zip file).
To create this project, I followed these steps:
Then I added the types:
npm install --save-dev @types/ej.web.all
and also added the types to tsconfig.json.

After doing the above, I've added "gridData: ej.DataManager;" to the home.component.ts. This is to simulate the usage that I have in my real application...

Visual Studio Code can find it, and if I F5 on "ej" it takes me to the type definition correctly.
Unfortunately, it can't find it when I try to build with "dotnet run"...

Do you know how I can fix this?

Attachment: SyncFusionTest_344ca3f9.zip

7 Replies

SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team November 15, 2019 02:01 PM UTC

Hi Dan,

Before proceeding further with this, please confirm us whether you are using the EJ1 Grid Component or EJ2 Grid Component.

Seeni Sakthi Kumar S

DC Dan Clarke November 15, 2019 02:06 PM UTC

I don't know. My grids look like this if that helps?