You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
pyladean
7 years agoHelpful | Level 5
"Dropbox is not a constructor" Nonreasonable Error
There is a script which uses Dropbox-sdk.min.js. The script was fully working yesterday, but today the "Dropbox is not a constructor" error is thrown, although there is the Dropbox object, as planne...
- 7 years ago
UPDATE: The solution is found.
I have inspected the Dropbox object and decided to try something. And I was right.
Everything works perfect if we use
var dbx = new Dropbox.Dropbox({accessToken: '***'});
instead.
I still do not know what in the world happened to the SDK that I was forced to use this workaround.
Thank you. The issue is solved.
Greg-DB
7 years agoDropbox Staff
Thanks for the report. We're looking into it. I'll follow up here once I have more information on this for you.
- pyladean7 years agoHelpful | Level 5
UPDATE: The solution is found.
I have inspected the Dropbox object and decided to try something. And I was right.
Everything works perfect if we use
var dbx = new Dropbox.Dropbox({accessToken: '***'});
instead.
I still do not know what in the world happened to the SDK that I was forced to use this workaround.
Thank you. The issue is solved.
- Greg-DB7 years agoDropbox Staff
The API v2 JavaScript SDK just received a major revision that includes breaking changes, with a corresponding major version bump. You can find the release notes here:
https://github.com/dropbox/dropbox-sdk-js/releases/tag/v3.0.0
This includes a change to how the `Dropbox` object is constructed. In short, as of v3.0.0, you should now use `Dropbox.Dropbox` instead.
In order to avoid major version changes from breaking your app, you can instead import specific versions of the library.
Exactly how you do so depends on where you're loading the library from.
For instance, unpkg has information on specifying particular versions here: https://unpkg.com/
- pyladean7 years agoHelpful | Level 5
Thank you. I count on you, because our company and I need this thing work properly as soon as possible.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,888 PostsLatest Activity: 2 days agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!