Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Use Plotly.js bundled module instead of CDN link in demo #7

Open
thinkh opened this issue Jul 3, 2020 · 1 comment
Open

Use Plotly.js bundled module instead of CDN link in demo #7

thinkh opened this issue Jul 3, 2020 · 1 comment
Assignees
Labels
dependencies Pull requests that update a dependency file

Comments

@thinkh
Copy link
Member

thinkh commented Jul 3, 2020

Currently, we must add the import Plotly.js via CDN, because it is impossible to use Plotly.js with Snowpack.

Following Snowpacks instructions to Node built-in could not be resolved leads to the error Cannot read property 'document' of undefined (see plotly/angular-plotly.js#75). Also creating a custom build following the instructions for webpack builds did not work.

I guess that this issue can be resolved, once ...

@thinkh
Copy link
Member Author

thinkh commented Jul 8, 2021

Might be resolved with Plotly 2.0 .

Finally, we are pleased that you can now import Plotly.js using ES6 import.

@thinkh thinkh added the dependencies Pull requests that update a dependency file label Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants