-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Using Plotly with Salesforce (strict mode now enforced) #713
Comments
Thanks for writing in. All source files in this repo have I believe that most of our dependencies (e.g. the gl-vis packages) are strict mode compatible (thought I haven't checked). So, this issue should be resolved by at the same time we bump |
Thanks Etienne. I had sort of assumed there was a D3 versioning issue. Is there a |
Not at the moment, unfortunately. I'll comment on this thread once a |
In the mean time, I'd recommend taking a looking at this gist that shows how to bundle plotly.js without Then, maybe someone out there made a patched version of |
The specific Salesforce enforcement officially takes effect in October, so I might be able to stay on current versions. That is excellent advice though, so I will see if I can track it down. |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
Hello!
I'm super excited that Plotly is now open source, and I'm hoping to use it with an app I'm developing on the Salesforce platform.
Salesforce has recently put in place a new policy for 3rd party Javascript libraries: https://developer.salesforce.com/blogs/developer-relations/2016/04/introducing-lockerservice-lightning-components.html
Amongst other things, "
strict
" is on be default, and there are numerous areas where Plotly is failing.I've just started looking through the errors and found a few things like:
I'm not sure if the roadmap for Plot.ly includes support for moving to ES6 (where
strict
is on be default), or if Plotly is using the D3.v4 (which I believe is ES6 compatible...).If it's not, then I will look into seeing how many changes and where need to happen to get Plotly running again on Salesforce.
Thanks!
The text was updated successfully, but these errors were encountered: