Closed muffincode closed 2 days ago
Did you get anywhere with this?
I'm not familiar with Vite, but it seems like there ought to be a way to configure it to provide a global
object, without it renaming files.
I managed by specifying the environment
export default defineNuxtConfig({
$development: {
vite: {
define: {
global: 'window'
},
},
},
Hi, I'm using matrix-js-sdk@30.3.0 in a Nuxt app and encounter this error when loading the app
I can fix this by changing the Vite config as such:
Then, serving the project locally works fine, but when building, it seems to replace all instances of "global" in the filenames etc, breaking the build.
For example, the component stored in components/global/buttons/button-text.vue
is there any other way to give the sdk what it wants without changing the vite config?