vite-ssg icon indicating copy to clipboard operation
vite-ssg copied to clipboard

vite-ssg build getting failed with quasar framwork

Open pavanrvennapusa opened this issue 3 years ago • 5 comments

I recently added quasar framework to my vite-ssg project (using vitesse). while trying to build with cross-env NODE_ENV=production vite-ssg build or pnpm build it is getting failed Now, I am able to build with cross-env NODE_ENV=production vite build but cannot build with cross-env NODE_ENV=production vite-ssg build

please find below screenshot for your reference

image

pavanrvennapusa avatar Dec 29 '21 13:12 pavanrvennapusa

vite-ssg uses SSR for SSG: see warning about build with SSR and quasar vite plugin https://quasar.dev/start/vite-plugin#introduction

userquin avatar Dec 29 '21 13:12 userquin

@userquin any road-map plans to resolve this issue??

pavanrvennapusa avatar Dec 30 '21 08:12 pavanrvennapusa

@pavanrvennapusa the problem is on quasar, you can try to mocking the project with jsdom (see vite-ssg options)... there is nothing we can do here

userquin avatar Dec 30 '21 17:12 userquin

@pavanrvennapusa the problem is on quasar, you can try to mocking the project with jsdom (see vite-ssg options)... there is nothing we can do here

Any chance this works? If so, could you demonstrate this anywhere in an example?

TNortnern avatar May 11 '22 13:05 TNortnern

i had to use vite build instead of vite-ssg to work with quasar,

In order to implement ssr on this project structure, I had to move to quasar cli with app-vite and use vite config inside of quasar config, that worked for me for ssr builds

pavanrvennapusa avatar Jun 23 '23 11:06 pavanrvennapusa