Errors in Dash (dash_core_components was not found + SyntaxError: "" literal not terminated before end of script)

dash 1.19.0
dash-core-components 1.15.0
dash-html-components todo 1.1.2
dash-bootstrap-components 0.12.0
dash-renderer 1.9.0
dash-table 4.11.2
(I’m going to add the infos)

Describe the bug

The errors i have :

  • Uncaught (in promise) Error: dash_core_components was not found
    I thought it was because my initial layout doesn’t have a dcc component. When it doesn’t have a component from a lib, dash does not load the js bundle. But i din’t success to fix it.

  • Uncaught SyntaxError: “” literal not terminated before end of script
    I have really no idea how to solve it.

Expected behavior

I have developed a Dash application. Everything is working on my computer. Now, I’m trying to host this app on a RedHat server ( How To Serve Flask Applications with uWSGI and Nginx on Ubuntu | DigitalOcean )

Hi everyone ! I’ve solved it.
I’ve replaced :
app = dash.Dash(external_stylesheets=[dbc.themes.FLATLY])
app = dash.Dash(external_stylesheets=[dbc.themes.FLATLY], serve_locally=False)