SortableJS / ngx-sortablejs

Angular 2+ binding to SortableJS. Previously known as angular-sortablejs
https://sortablejs.github.io/ngx-sortablejs/
MIT License
466 stars 160 forks source link

Unable to evaluate this expression statically #253

Open IbrahimSabry opened 2 years ago

IbrahimSabry commented 2 years ago

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.

IbrahimSabry commented 2 years ago

anyone here?

kshamaj15 commented 1 year ago

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;
}