Hi all,
we receive this error running our Python dash application in Production:
INFO:werkzeug:10.190.39.2 - - [27/Feb/2024 17:07:08] “POST /_dash-update-component HTTP/1.1” 200 -
INFO:werkzeug:10.190.40.2 - - [27/Feb/2024 17:07:08] “POST /_dash-update-component HTTP/1.1” 200 -
ERROR:app:Exception on /_dash-component-suites/dash_ag_grid/dash_ag_grid.min.js.map [GET]
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1463, in wsgi_app
response = self.full_dispatch_request()
File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 872, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/usr/local/lib/python3.9/site-packages/flask_cors/extension.py”, line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 870, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 855, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
File “/usr/local/lib/python3.9/site-packages/dash/dash.py”, line 947, in serve_component_suites
_validate.validate_js_path(self.registered_paths, package_name, path_in_pkg)
File “/usr/local/lib/python3.9/site-packages/dash/_validate.py”, line 365, in validate_js_path
raise exceptions.DependencyException(
dash.exceptions.DependencyException: Error loading dependency. “dash_ag_grid” is not a registered library.
Registered libraries are:
[‘dash’, ‘dash_bootstrap_components’, ‘plotly’]
What does library registration mean here and how do you think I can resolve this?