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

avoid dependency version conflicts with other htmlwidgets #162

Open
cjyetman opened this issue Jan 12, 2017 · 3 comments
Open

avoid dependency version conflicts with other htmlwidgets #162

cjyetman opened this issue Jan 12, 2017 · 3 comments

Comments

@cjyetman
Copy link
Collaborator

There has been some discussion about this here #143

In short, if two htmlwidgets are being displayed on the same page and they use the same Javascript dependency but different versions, those dependencies can overwrite each other when they are loaded/added to window. Additionally, if they have the same name in their YAML file, htmlwidgets will only load the one with the highest version number. I point this out separately because even if htmlwidgets did load both versions, there could still be a collision when they were loaded onto window. This is most notably an issue with incompatibilities between D3v3 and D3v4.

It would be great to collect all discussion, ideas, links, hints, etc. about this problem in one issue here. @timelyportfolio, you seem to have been following this problem for a while, so it would be nice if you could copy in here those ideas and links to similar solutions or discussions in other packages.

@cjyetman
Copy link
Collaborator Author

@IsabelFE
Copy link

IsabelFE commented Aug 5, 2022

Hi, I see comments about this issue from 5 years ago. I am having the same problem still in 2022. Has this being fixed?

@cjyetman
Copy link
Collaborator Author

cjyetman commented Aug 5, 2022

I don't think a solution was ever found, it's just a known problem.

I started building a new package with similar functionality but based on {r2d3} which circumvents this problem, but it is not complete. https://cjyetman.com/network.r2d3/

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