Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Syntax Error Internet Explorer #6250


User avatar
0
pointlevel created

Hello!

When navigation to a page where entityhistory is included i get an syntax error in Internet Explorer(11.472.17134.0) and the page is not loading my tenants. The code it refers to is in file "aspnet-zero-core/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/wwwroot/view-resources/Areas/AppAreaName/Views/Tenants/Index.js":

function entityHistoryIsEnabled() {
            return abp.custom.EntityHistory &&
                abp.custom.EntityHistory.IsEnabled &&
                _.filter(abp.custom.EntityHistory.EnabledEntities, entityType => entityType === _entityTypeFullName).length === 1;
        }

Everuthing works flawlessly in Chrome without any errors.

Any idea?


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    IE does not support the arrow function, we have to change to function.

  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, it is due to javascript arrow function.

    I made a PR to fix that. See https://github.com/aspnetzero/aspnet-zero-core/pull/2068.

    You can apply the changes in your project if you need the fix urgently.