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

jayharris's avatar
jayharris
New member | Level 2
12 months ago

New version of Dropbox embed dropins.js breaks other libraries, including Mux.

If you're a Dropbox employee reading this right now, you should go find whatever team at Dropbox pushed a new version of dropins.js today and tell them to roll back their changes, because it's breaking other libraries.

 

Our app that uses the standard dropins.js embed began crashing this afternoon with no changes pushed:

 

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

 

An update to ^ that embed link was pushed earlier today that breaks some other Javascript libraries, like Mux, when they try to access properties on the window object.

 

Some steps to reproduce if you want to:

• Create a new Next.js app.

• Add dropins.js to the _document file.

• Install mux-player-react and try to use it as a React component.

 

Error: TypeError: Cannot read properties of undefined (reading 'performance'

 

  • This should be working properly again now. Please let us know if you're still seeing this issue. Thanks!

    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff

      This should be working properly again now. Please let us know if you're still seeing this issue. Thanks!

      • jayharris's avatar
        jayharris
        New member | Level 2

        Looks like that fix works for us - thanks for the quick response!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,884 PostsLatest Activity: 37 minutes ago
326 Following

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!