lian-yue / vue-upload-component

Vue.js file upload component, Multi-file upload, Upload directory, Drag upload, Drag the directory, Upload multiple files at the same time, html4 (IE 9), `PUT` method, Customize the filter
Apache License 2.0
2.69k stars 697 forks source link

The requested module 'vue-upload-component' does not provide an export named 'default' #458

Closed fedottt closed 7 months ago

fedottt commented 7 months ago

The requested module 'vue-upload-component' does not provide an export named 'default'

`

`

and upl.js is

import { createApp, ref } from 'vue' import { toast } from '/js/toastify.js' import VueUploadComponent from 'vue-upload-component'

lian-yue commented 7 months ago

ESM support that has been added with browser, updated to version 3.1.15

npm i vue-upload-component@3.1.15
https://github.com/lian-yue/vue-upload-component/blob/master/esm.html
https://lian-yue.github.io/vue-upload-component/esm.html
https://unpkg.com/vue-upload-component@3.1.15/dist/vue-upload-component.esm.js
fedottt commented 7 months ago

awesome! thk)