cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

Uncaught ReferenceError: Dropbox is not defined

Uncaught ReferenceError: Dropbox is not defined

mineraldragon
Explorer | Level 3

I import the Javascript SDK like this:

 

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

 

And then it hangs at:

 

var dbx = new Dropbox({clientId: DBX_CLIENT_ID});

 

Saying Dropbox is not defined. What might be the issue? 

7 Replies 7

Greg-DB
Dropbox Staff
This seems to be working for me. Are you loading the script before you call the `new Dropbox` line?

mineraldragon
Explorer | Level 3

Yes, it's in the header

Greg-DB
Dropbox Staff
Are you getting any other errors? Do you have a sample page available where we can see this issue occurring?

mineraldragon
Explorer | Level 3

I don't get other errors. What would be a safe way to share the page ?

Greg-DB
Dropbox Staff
Whatever you're comfortable with is fine by us. If you'd prefer to share it privately, you can open an API ticket here: https://www.dropbox.com/developers/contact

mineraldragon
Explorer | Level 3

OK, I've opened a ticket

 

mineraldragon
Explorer | Level 3

It was my Ad Blocker .. Disabling the Ad Blocker (Stands) fixed it. 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    mineraldragon Explorer | Level 3
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?