501351981 / vue-office

支持word(.docx)、excel(.xlsx,.xls)、pdf、pptx等各类型office文件预览的vue组件集合,提供一站式office文件预览方案,支持vue2和3,也支持React等非Vue框架。Web-based pdf, excel, word, pptx preview library
https://501351981.github.io/vue-office/examples/docs/
MIT License
4.08k stars 471 forks source link

error while deploy with office(excel, docx) #348

Open VoOneCode opened 3 months ago

VoOneCode commented 3 months ago

vue 3 + vite + ts @vue-office/docx, @vue-office/excel

when run on localhost - docx and xlsx work fine. Then try to deploy and get error RollupError: ../myproject/dist/index-Cozw5At8.mjs (5:7): "default" is not exported by "node_modules/vue/dist/vue.runtime.esm-bundler.js", imported by "../myproject/dist/index-Cozw5At8.mjs".

3: var Xd = (e, n, o) => (tN(e, typeof n != "symbol" ? n + "" : n, o), o); 4: import require$$0$3, { watch, reactive, h as h$1, Fragment, getCurrentInstance, inject, onMounted, onUnmounted, ref a... 5: var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? glob... ^ 6: function getDefaultExportFromCjs$1(e) { 7: return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;

What does this mean and how to fix? Please, help

VoOneCode commented 2 months ago

seems like there is no vue in build. Or it builds for vue2 instead vue3