Yeah I figured it out. I started converting the app to CLI with Vite and the most notable issues are:
require cannot be used. I used require for images like <img :src="require('./my-image.png')" />
importing components should have .vue extenstion. That was really tedious to fix since my IDE automatically import components as import MyComp from 'MyComp' but with Vite is required to have the .vue extension so import MyComp from 'MyComp.vue'
Just a hobbyist programmer with an eye on new technologies. Currently helping Quasar and NestJS Frameworks, because....well.....because they're awesome! :-)
Just a hobbyist programmer with an eye on new technologies. Currently helping Quasar and NestJS Frameworks, because....well.....because they're awesome! :-)
Yeah I figured it out. I started converting the app to CLI with Vite and the most notable issues are:
require
cannot be used. I used require for images like<img :src="require('./my-image.png')" />
.vue
extenstion. That was really tedious to fix since my IDE automatically import components asimport MyComp from 'MyComp'
but with Vite is required to have the.vue
extension soimport MyComp from 'MyComp.vue'
You'll be happy you put in the effort though. :)
Yup! Once I get it to work, I hope everything is smooth.
quasar.config.js
is using commonjs though. Is there any way to make it work with es modules?You can follow this issue for that problem.
github.com/quasarframework/quasar/...
😁😁 I am the one who opened that issue today 😁😁