CDN Install not work

im trying to use CDN install here Drag & Drop | Uppy

my code like this :

its shows error :
Uncaught SyntaxError: The requested module does not provide an export named ‘DragDrop’ (at index.htm:13:22)

1 Like

i have same problem :confused: using npm it works but i have to use cdn

I also have the same problem…

You should be using the .mjs file extension, not .js. Here’s the correct snippet:

<!DOCTYPE html>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="" rel="stylesheet">

    <title>Uppy Example</title>
    <div id="uppy"></div>
    <script type="module">
      import { Uppy, DragDrop } from ""
      const uppy = new Uppy()
      uppy.use(DragDrop, { target: '#uppy' })
1 Like