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
Using dash_leaflet causes js library to fail #476
Comments
Shouldn't be relevant since non map applications work as intended, but I'm running the app on Docker starting with the following library versions
In settings.py:
|
Mistakenly closed |
If I try accessing https://unpkg.com/dash_leaflet@0.1.28/dash_leaflet/dash_leaflet.min.js then I get the error:
This suggests that the issue is with |
I think the issue is with the js library missing altogether. From my limited knowledge unpkg shuld be a wrapper for npm js libraries, however when I search dash_leaflet on npm I only find https://www.npmjs.com/package/dash-leaflet (which has actually been posted two days ago, before that it was empty). Maybe changing the reference to point to the new library would fix it |
@cristianleonie-geos what configuration parameters do you have - in particular the |
I have the same problem. If I try accessing https://unpkg.com/react@16.14.0/umd/react.production.min.js then I get the error: I change serve_locally.
|
Here are mine, this is the last version, but I've tried also other combinations:
|
Unfortunately, your solution did not work. Errors persist. "frontendDash" is the name of your application or a library? |
No, I was having the same problema and shared my settings, as requested. It's my application |
Is it not possible to integrate a map from dash_leaflet due to the error: Cannot find package dash_leaflet at https://unpkg.com
It may be due to auto-generated src
<script src="https://unpkg.com/dash_leaflet@0.1.28/dash_leaflet/dash_leaflet.min.js"></script>As a result the map is not shown in the application, application code:
Application
Html
urls.py
Error from console:
The resource at "https://unpkg.com/dash_leaflet@0.1.28/dash_leaflet/dash_leaflet.min.js" has been blocked due to a mismatch in MIME type ("text/plain") (X-Content-Type-Options: nosniff).
Another error from console:
Error: dash_leaflet was not found.
The text was updated successfully, but these errors were encountered: