cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Musicians, convert your MuseScore files to PDF to play music on the go! Learn more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor

Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor

skezh1
New member | Level 2

Hi! This error reappeared again!

13 Replies 13

PeachBug
Explorer | Level 3

I just didn't want to publish my app-key here at the forum, but I did set it properly..

shamilto2000
Helpful | Level 6

Unfortunately I am receiving a similar error when using the Embedder, which has worked successfully in my app for years: 

 

Uncaught TypeError: Dropbox.embed is not a function
at dropins.js:1:36970
at E.init (dropins.js:1:37032)
at HTMLDocument.w (dropins.js:1:24186)

 

I tried moving the dropins.js before the sdk inclusion as suggested by another post in the community, but this seems not to resolve it:

 

<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="MY_KEY"></script>

<script src="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js"></script>

 

 

 

 

Greg-DB
Dropbox Staff

@shamilto2000 It looks like you are getting a different error than the one reported in the thread you originally posted in, so I've moved your message to this thread which has the same error you're getting.

 

Please check out the earlier messages in this thread for ways to handle loading both scripts.

shamilto2000
Helpful | Level 6

I have solved this by removing the line

 

<script src="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js"></script>

 

 

Need more support?