Dash not loading locally - syntax error unexpected token '<'

Hi dash community,

I cannot manage to run my dash app locally and keep getting this error from the screenshot.
This is the first time its happening to me. I am using production code that is running fine when deployed.
I tried to create a virtualenv from scratch, reinstalling the dependencies, but I still get this error.
I did play around with nextjs recently though, I dont know if this could have an impact. The only other person in my organisation who has the same issue has also played with nextjs.

Do you guys have any idea how to solve this?

Thank you
Arthur

Hi @arthurJacquemart
It looks like your error mentions polyfill. I’m not sure if that’s the only reason but there was a post about this vulnerability a couple of months ago. Does that help explain your issue?

Thank you Adam,

I dont think its related as I was using dash 2.15 before and I was getting the same error. Also, it looks like the error is happening for all the dash library installed.

1 Like

I see.
Can you please post the full code. Is there any change to config.routes/requests_pathname_prefix?

I figured it out!
I had a DASH_APP_NAME in my env file.
After removing it, it worked.

Thank you for your help Adam

1 Like