Hello and welcome to the community !
the issue you are having is related to the fact that Dash loads the layout and callbacks when starting, and since your initial layout doesn’t have the element with id time-line yet, the exception will rise telling you that there is a missing element,
the solution is to add this before running the server :
app.config.suppress_callback_exceptions = True
Like it is presented in previous Topic