Skip to content
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

Serve locally: False - Cannot find package [email protected] #317

Open
FRosner opened this issue Mar 26, 2024 · 4 comments
Open

Serve locally: False - Cannot find package [email protected] #317

FRosner opened this issue Mar 26, 2024 · 4 comments

Comments

@FRosner
Copy link

FRosner commented Mar 26, 2024

Hi! When I set serve_locally=False in my dash app that relies on dash-extensions, it fails with Cannot find package [email protected] when trying to fetch https://unpkg.com/[email protected]/dash_extensions/dash_extensions.min.js. I can see that https://www.npmjs.com/package/dash-extensions exists. Is that the correct repo? If yes, why is it looking for _ and not -?

How can I make this work? :)

My poetry.lock:

[[package]]
name = "dash-extensions"
version = "1.0.14"
description = "Extensions for Plotly Dash."
optional = false
python-versions = ">=3.8,<4"
files = [
    {file = "dash_extensions-1.0.14-py3-none-any.whl", hash = "sha256:960201f8b184ed85fe2b77258030e64af1bb4555dd9bdcbd66923f0cf1ae837f"},
    {file = "dash_extensions-1.0.14.tar.gz", hash = "sha256:ef25293a35c3c3c3ba640c05380c9f047a5efdeb4ca650dc2075bc5899a34c63"},
]
@FRosner
Copy link
Author

FRosner commented Apr 2, 2024

@emilhe is this something I can fix somehow? Maybe some -/_ mix-up I can address?

@emilhe
Copy link
Owner

emilhe commented Apr 5, 2024

I believe that the reason you face this issue is that the npm package is currently not published correctly. I would like to look into this at some point, but I haven't had the time yet. If you are able to correct the setup, I would be happy to look at a PR :)

@FRosner
Copy link
Author

FRosner commented Apr 9, 2024

I believe that the reason you face this issue is that the npm package is currently not published correctly.

Do you think so @emilhe? From what I can tell dash-extensions should be the correct name? I think the reason could be that the python module is dash_extensions, while the package is called dash-extensions. Would you be fine to rename the npm package to dash_extensions? Not sure if there is another way to fix that.

@FRosner
Copy link
Author

FRosner commented May 28, 2024

Any idea @emilhe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants