cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right 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?
Who's talking

Top contributors to this post

  • User avatar
    shamilto2000 Helpful | Level 6
  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    PeachBug Explorer | Level 3
  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?