Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to evaluate this expression statically #253

Open
IbrahimSabry opened this issue Dec 28, 2021 · 2 comments
Open

Unable to evaluate this expression statically #253

IbrahimSabry opened this issue Dec 28, 2021 · 2 comments

Comments

@IbrahimSabry
Copy link

IbrahimSabry commented Dec 28, 2021

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
Copy link
Author

anyone here?

@kshamaj15
Copy link

kshamaj15 commented Jul 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants