SortableJS/ngx-sortablejs

Unable to evaluate this expression statically

IbrahimSabry opened this issue · 2 comments

I installed ngx-sortablejs inside angular 13 project, and when I'm trying to import it in the appModule as per documentation the following error appears to me:

Value at position 5 in the NgModule.imports of AppModule is not a reference
Value could not be determined statically.(-991010)
app.module.ts(18, 5): Unable to evaluate this expression statically.

anyone here?

I am also facing same error

I upgraded angular 10 to 13
Unable to evaluate this expression statically.

return window.location.search.indexOf('APPDYNAMICS_PRIVATE_AUTOMATION_MODE=enabled') > -1;

error NG1010: Value at position 0 in the NgModule.imports of AnimationsModule is not a reference
Value could not be determined statically.

imports: [
        isDebugMode() ? NoopAnimationsModule : BrowserAnimationsModule
]
export function isDebugMode() {
         return window.location.search.indexOf('APPDYNAMICS_PRIVATE_AUTOMATION_MODE=enabled') > -1;
}