<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744090#M32769</link>
    <description>&lt;P&gt;Found the way to reproduce and the issue!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the problem happens if the following library is included after Dropbox-sdk.min.js:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/static/api/2/dropins.js" target="_blank" rel="noopener"&gt;https://www.dropbox.com/static/api/2/dropins.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see example here!&amp;nbsp;&lt;A href="https://jsfiddle.net/y9dm8oew/" target="_blank" rel="noopener"&gt;https://jsfiddle.net/y9dm8oew/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run it and open the console to see the error.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2024 09:12:38 GMT</pubDate>
    <dc:creator>skezh1</dc:creator>
    <dc:date>2024-01-17T09:12:38Z</dc:date>
    <item>
      <title>Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/743987#M32765</link>
      <description>&lt;P&gt;Hi! This error reappeared again!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 22:29:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/743987#M32765</guid>
      <dc:creator>skezh1</dc:creator>
      <dc:date>2024-01-16T22:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/743994#M32766</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1794762"&gt;@skezh1&lt;/a&gt; Thanks for the report. The thread you originally posted in was old, so I've moved this to a new thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There hasn't been a new release of the Dropbox JavaScript SDK recently, and I'm not seeing this issue in my own testing now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll be happy to help with any issues you're having with the Dropbox API/SDK, but I'll need some more information. Please reply with:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the name and version number of the platform and SDK/library you are using&lt;/LI&gt;
&lt;LI&gt;the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)&lt;/LI&gt;
&lt;LI&gt;the full text of any error or unexpected output&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 16 Jan 2024 22:40:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/743994#M32766</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-01-16T22:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744004#M32767</link>
      <description>&lt;P&gt;Hi Greg and thank you for replying so quickly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've built a web app that had been up for a few years and I did not make any recent updates there, but it started to fail today with the "TypeError: Dropbox.Dropbox is not a constructor" error on the "new Dropbox.Dropbox({accessToken: *** })" (Credentials replaced) line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried updating the SDK version to the latest (10.34.0 now, and I'm using an older version) - this did not fix the issue. SDK version 5.1.0 that did fix this issue last time - also did not help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Confused, I went to tutorials, and was able to successfully call dropbox from my app with the "basic" example (&lt;A href="https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript/basic" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript/basic&lt;/A&gt;) , but I could not find the problem still on why this started to happen. I tried to move the line to the global namespace like in the example - this also did not help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Eventually, I figured that replacing "new Dropbox.Dropbox" with just "new Dropbox" resolved the issue for me - all the functions were there. I've added a try-catch to try both options for now so that my app will continue working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I find what the issue was - I will update!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 23:26:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744004#M32767</guid>
      <dc:creator>skezh1</dc:creator>
      <dc:date>2024-01-16T23:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744090#M32769</link>
      <description>&lt;P&gt;Found the way to reproduce and the issue!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the problem happens if the following library is included after Dropbox-sdk.min.js:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/static/api/2/dropins.js" target="_blank" rel="noopener"&gt;https://www.dropbox.com/static/api/2/dropins.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see example here!&amp;nbsp;&lt;A href="https://jsfiddle.net/y9dm8oew/" target="_blank" rel="noopener"&gt;https://jsfiddle.net/y9dm8oew/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run it and open the console to see the error.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 09:12:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744090#M32769</guid>
      <dc:creator>skezh1</dc:creator>
      <dc:date>2024-01-17T09:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744132#M32770</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1794762"&gt;@skezh1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, of course, it's obvious. Both scripts share the same namespace and put there the same name - the last wins. 🙋 That's where your issue is coming from.&lt;/P&gt;&lt;P&gt;By the way you're not using neither Embedder, Saver, or something like... hy at all you need the second script? 🧐 Just to make your life difficult? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt;&lt;/P&gt;&lt;P&gt;A workaround can be seen &lt;A href="https://jsfiddle.net/m2qsw1zu/" target="_blank" rel="noopener"&gt;here&lt;/A&gt; if by any chance you need both scripts. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 12:58:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744132#M32770</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-01-17T12:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744135#M32771</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 13:06:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744135#M32771</guid>
      <dc:creator>skezh1</dc:creator>
      <dc:date>2024-01-17T13:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744191#M32772</link>
      <description>&lt;P&gt;I'm using the Saver in my app. The above was just a minimal sniplet to reproduce the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question remaining is why now this started to happen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did the dropin library had changes to it that started to overwrite the Dropbox class instead of extending it, and if so - was the change intended and probably documentation should be updated, or is it a bug?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 14:54:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744191#M32772</guid>
      <dc:creator>skezh1</dc:creator>
      <dc:date>2024-01-17T14:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744201#M32773</link>
      <description>&lt;P&gt;To be honest, I'm not aware of some recent change. Both scripts share the same name all the time, as far as I know. So when put on the same place one of them will overwrite the other always - the last wins, as I said!&lt;/P&gt;&lt;P&gt;Maybe you have something changed in your page: different namespaces merge, order os scripts load change, move from static to dynamic build of Saver, etc. Could be one or more of the things. You can best figure out what happened.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 15:03:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744201#M32773</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-01-17T15:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744409#M32776</link>
      <description>&lt;P&gt;We are facing the same issue in our company, both Dropbox.Dropbox and Dropbox.embed is undefined, but Dropbox and embed are available on window&lt;BR /&gt;I tried the &lt;A href="https://jsfiddle.net/m2qsw1zu/" target="_self"&gt;workaround&lt;/A&gt;, but then Dropbox.embed errors out with the following message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error: appKey must be provided
at o.e (dropins.js:1:24651)
at new o (dropins.js:1:31456)
at Dropbox.embed (dropins.js:1:36121)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;the only thing that could have changed is the dropins.js file, as we serve our own copy of Dropbox-sdk.min.js from cdnjs.&lt;BR /&gt;&lt;BR /&gt;Edit: got it to work, had to piece together the Dropbox object&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/dropbox.js/10.34.0/Dropbox-sdk.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
   const dropbox = Dropbox;
&amp;lt;/script&amp;gt;
&amp;lt;script id="dropboxjs" type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" data-app-key="..."&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
   Dropbox = { Dropbox, ...dropbox }
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Jan 2024 02:04:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744409#M32776</guid>
      <dc:creator>PeachBug</dc:creator>
      <dc:date>2024-01-18T02:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744444#M32777</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1733752"&gt;@PeachBug&lt;/a&gt;, I don't know if your issue is the same or how similar it is, but as seems for some reason you have forgot the application key (that should be placed &lt;A title="Setting up the Embedder" href="https://www.dropbox.com/developers/embedder#setup" target="_blank" rel="noopener"&gt;setup&lt;/A&gt; with &lt;EM&gt;data-app-key&lt;/EM&gt; attribute). Just fix it. You can check what's there right now as dump (log or render) of Dropbox.appKey.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 01:42:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/744444#M32777</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-01-18T01:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught TypeError: Dropbox.Dropbox is not a constructor</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/745070#M32783</link>
      <description>&lt;P&gt;I just didn't want to publish my app-key here at the forum, but I did set it properly..&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 10:22:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/745070#M32783</guid>
      <dc:creator>PeachBug</dc:creator>
      <dc:date>2024-01-18T10:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: 🚨 New version of Dropbox embed dropins.js breaks other libraries, including Mux.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/746729#M32815</link>
      <description>&lt;P&gt;Unfortunately I am receiving a similar error when using the Embedder, which has worked successfully in my app for years:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uncaught TypeError: Dropbox.embed is not a function&lt;BR /&gt;at dropins.js:1:36970&lt;BR /&gt;at E.init (dropins.js:1:37032)&lt;BR /&gt;at HTMLDocument.w (dropins.js:1:24186)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript" src="&lt;A href="https://www.dropbox.com/static/api/2/dropins.js" target="_blank"&gt;https://www.dropbox.com/static/api/2/dropins.js&lt;/A&gt;" id="dropboxjs" data-app-key="MY_KEY"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="&lt;A href="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js" target="_blank"&gt;https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 10:45:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/746729#M32815</guid>
      <dc:creator>shamilto2000</dc:creator>
      <dc:date>2024-01-23T10:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: 🚨 New version of Dropbox embed dropins.js breaks other libraries, including Mux.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/746774#M32816</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1537791"&gt;@shamilto2000&lt;/a&gt; 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 &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/td-p/743987" target="_blank"&gt;this thread&lt;/A&gt; which has the same error you're getting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check out the earlier messages in this thread for ways to handle loading both scripts.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 15:30:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/746774#M32816</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-01-23T15:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: 🚨 New version of Dropbox embed dropins.js breaks other libraries, including Mux.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/746786#M32819</link>
      <description>&lt;P&gt;I have solved this by removing the line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="&lt;A href="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js" target="_blank" rel="noopener"&gt;https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 18:08:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Uncaught-TypeError-Dropbox-Dropbox-is-not-a-constructor/m-p/746786#M32819</guid>
      <dc:creator>shamilto2000</dc:creator>
      <dc:date>2024-01-23T18:08:02Z</dc:date>
    </item>
  </channel>
</rss>

