Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
chartbid
8 years agoExplorer | Level 3
Dropbox JavaScript SDK - ReferenceError: Dropbox is not defined (with angularJS 1.4)
Hi, I'm trying to use Dropbox Javascript SDK (version 2) in my angular 1.4 Application. The installation of the package was OK but when I execute the function 'viewFile' I get an error ReferenceErr...
chartbid
8 years agoExplorer | Level 3
Good morning Greg,
No, I don't get any error before the ReferenceError.
I've noticed that it's necessary to use
var Dropbox = require('dropbox');
before creating the Dropbox object.
In that case I think I have to install RequireJS module in my angularJS 1.4 app.
Is this the way that I'll fix the problem or is there any other easier solution?
Thanks in advance.
Greg-DB
Dropbox Staff
8 years agoThanks for following up. I'm glad to hear you got this working. The JavaScript SDK wasn't built for Angular unfortunately, so I can't offer a more official/supported solution.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,976 PostsLatest Activity: 7 hours ago
If 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!