-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Dist versions do not work with Browserify #2902
Comments
It looks like this is currently expected and would need browserify/detective#79 to land in order to work. Other related issues:
which probably means that |
Thanks very much for the detailed report. I was unaware that browserify couldn't bundle bundles it already bundled. It looks like browserify/detective#79 is planned for browserify v17, so that's probably the best solution going forward. At present though, if someone could give |
While this is 100% correct it still creates the issue of libraries that depend upon plotly referring to the dist versions, thus making it impossible (or require workarounds) to use them with Browserify, see: plotly/react-plotly.js#93 so in this case it'd not only be about the bytes. |
Oh right. I was unaware that |
Can we close this now that #2905 is merged? |
Yes. The fix in #2905 is compatible with browserify@17 which is upcoming. |
This is picking up: plotly/react-plotly.js#93
I'm running into issues using the
dist
versions included inplotly.js
andplotly.js-dist
in a Browserify bundle.I am basically just doing what the README tells me:
When I try to Browserify this script it tells me:
When I try to load the dist bundle from the
plotly.js
package as seen for example inreact-plotly.js
I will see the following error:I can however bundle plotly if I use
require('plotly.js')
as the main entry point.I created an example repository for reproducing the issue over here: https://github.com/m90/plotly-browserify-issue
The text was updated successfully, but these errors were encountered: