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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants