-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fonts - dash.exceptions.DependencyException: app is registered but the path requested is not valid. #11
Comments
The extra font files need to be added to the resources dist of the component library, either In the stylesheet url it start with |
Also for packaging (whl, pypi), need to add the extensions to |
Thanks for the response! So, I've tried using In terms of the stylesheet URL how would you suggest I go about changing that? I'm not explicitly setting anything on the URLs here and what I posted above is just the automatic config using this boilerplate. |
Files needs to be added manually, the boilerplate only generates with the basic .js bundles.
In the stylesheet src file, the font |
I'm using this template to bridge https://primereact.org/multiselect/ into Dash but I'm running into issues with Icons not showing:
There's a reproducible example here: https://github.com/gofford/dash-primereact-app.
What I've found so far: the JS Console yields a series of 500 errors for the resource files corresponding to the icons (see [1]), but the files do appear to be available [2]. If I navigate directly to the expected path of the resource (from the stylesheet [3]), I get a
DependencyException
[4].I have built this same component in JS using the "normal" cookiecutter template and the icons appear OK, but I need to use TS so that this component can co-exist with other components that have been built from scratch in TS.
Do you know how to remedy this, or if theres anything that I need to do differently during the build or in the webpack?
Figures
[1] 500 Error codes
[2] Files appear to exist
[3] Stylesheet URLs
[4] DependencyException
``` DependencyException dash.exceptions.DependencyException: "dash_primereact_app" is registered but the path requested is not valid. The path requested: "d44157bdfa026dc877af.eot" List of registered paths: defaultdict(, {'dash': {'dcc/dash_core_components-shared.js', 'html/dash_html_components.min.js', 'dcc/async-slider.js', 'html/dash_html_components.min.js.map', 'dcc/async-markdown.js', 'dcc/async-highlight.js', 'dcc/async-datepicker.js', 'dcc/dash_core_components-shared.js.map', 'dcc/async-mathjax.js', 'dcc/async-dropdown.js', 'dcc/async-mathjax.js.map', 'dash_table/async-highlight.js.map', 'dash_table/async-export.js.map', 'dcc/async-highlight.js.map', 'dash-renderer/build/dash_renderer.dev.js.map', 'dcc/async-dropdown.js.map', 'dash_table/bundle.js', 'dash_table/bundle.js.map', 'dcc/async-upload.js.map', 'dcc/async-datepicker.js.map', 'dash_table/async-highlight.js', 'dcc/dash_core_components.js.map', 'dcc/async-plotlyjs.js', 'deps/[email protected]', 'dcc/plotly.min.js', 'deps/[email protected]', 'dcc/async-graph.js', 'deps/[email protected]', 'dash_table/async-table.js.map', 'dash_table/async-table.js', 'dcc/async-plotlyjs.js.map', 'dcc/async-graph.js.map', 'dcc/async-slider.js.map', 'dcc/async-upload.js', 'dcc/async-markdown.js.map', 'deps/[email protected]', 'dash-renderer/build/dash_renderer.dev.js', 'dcc/dash_core_components.js', 'dash_table/async-export.js'}, 'dash_primereact_app': {'dash_primereact_app.js.map', 'dash_primereact_app.js'}}) ```The text was updated successfully, but these errors were encountered: