0👍
You can check solution there
https://github.com/bevacqua/dragula/issues/602
It seems that next in the vite.config.js must solve the issue
import { defineConfig } from 'vite'
export default defineConfig({
define: {
global: {},
},
})
if somehow it doesn’t work, you can try to add the next code before including the spreadhsheet’s js file
<script>
if (typeof (window as any).global === 'undefined') {
(window as any).global = window;
}
</script>
<script src="spreadsheet.js"></script>
- [Vuejs]-How to use vue3 suspense on the root level?
- [Vuejs]-Laravel 10 with vue doesn't work for me, the app.js file can't find it
Source:stackexchange.com