-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no default exports in vuedraggable and xlsx.js #136
Comments
Pls hange to use vue3-excel-editor.
在 2024年2月8日週四 23:43,danielKugler ***@***.***> 寫道:
… While changing to vite with a vue2 project we are now getting errors.
Uncaught SyntaxError: The requested module '/node_modules/vuedraggable/dist/vuedraggable.umd.js?v=ef55e21c' does not provide an export named 'default' (at PanelSetting.vue:2:8)
Uncaught SyntaxError: The requested module '/node_modules/xlsx/xlsx.js?v=ef55e21c' does not provide an export named 'default' (at VueExcelEditor.vue:7:8)
xlsx.js and vuedraggable seem to not provide default exports.
Therefor imports have to be adjusted.
Could you please change the import in *PanelSettings.vue*
from: *import draggable from 'vuedraggable'*
to: *import * as draggable from 'vuedraggable'*
AND in *VueExcelEditor.vue*
from: *import XLSX from 'xlsx'*
to: *import * as XLSX from 'xlsx'*
—
Reply to this email directly, view it on GitHub
<#136>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYSOFZD6AXQUDPWLGHPKKTYSTXBFAVCNFSM6AAAAABC77A4JKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZDKNBYHEYTONQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
As i said, it is a vue2 project. |
I have the same issue while trying to use this on Vue2 project with Vite. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While changing to vite with a vue2 project we are now getting errors.
xlsx.js and vuedraggable seem to not provide default exports.
Therefor imports have to be adjusted.
Could you please change the import in PanelSettings.vue
from: import draggable from 'vuedraggable'
to: import * as draggable from 'vuedraggable'
AND in VueExcelEditor.vue
from: import XLSX from 'xlsx'
to: import * as XLSX from 'xlsx'
The text was updated successfully, but these errors were encountered: