0👍
I haven’t used mathlive specifically, but I read your question and suspected that:
transpile: ['mathlive-vue']
Should be:
transpile: ['vue-mathlive']
becase the output complains about ./node_modules/mathlive/dist/vue-mathlive.mjs specifically.
I spun up a quick app and was able to recreate your error by copying your transpile config. Switching to vue-mathline resolved the error for me.
In case you (or anyone else who finds this question) are wondering what’s going on- mathlive code uses ES modules, which cannot be executed in Node (the server side of your Nuxt app). Therefore you need to let Nuxt know that those files should be transpiled (made compatible with node) in order for them to work.
- [Vuejs]-Filtering items, checkbox issue laravel + vue js
- [Vuejs]-How to implment chartkick dynamically with laravel and vue js
Source:stackexchange.com