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

Things to take up with Dash #117

Open
rubenthoms opened this issue Apr 9, 2021 · 1 comment
Open

Things to take up with Dash #117

rubenthoms opened this issue Apr 9, 2021 · 1 comment

Comments

@rubenthoms
Copy link
Collaborator

rubenthoms commented Apr 9, 2021

  • Why does dash_generate_components create a copy of the package.json file and cannot use the one in the main directory?
    dash-generate-components ./dist webviz_core_components -p ../package.json =>
  File "/home/ruben/.local/bin/dash-generate-components", line 8, in <module>
    sys.exit(cli())
  File "/home/ruben/.local/lib/python3.8/site-packages/dash/development/component_generator.py", line 204, in cli
    generate_components(
  File "/home/ruben/.local/lib/python3.8/site-packages/dash/development/component_generator.py", line 71, in generate_components
    shutil.copyfile(
  File "/usr/lib/python3.8/shutil.py", line 241, in copyfile
    raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
shutil.SameFileError: 'package.json' and 'webviz_core_components/../package.json' are the same file
@anders-kiaer
Copy link
Collaborator

anders-kiaer commented Jun 29, 2021

Another thing: E.g.
dash-generate-components ./dist ../webviz_core_components
would not work. The build step will pass, but during Dash app running the browser console will say it can't find namespace ../webviz_core_components. I.e. it looks like the second argument is assumed to be both a folder and what is used by Dash internally as namespace.

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