You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this question has been raised before,
but the conversation seemed to veer away from the use of gridsome
and I think there have been some changes to Quasar since then.
Anyway I've been experimenting to see if I can get the latest version of quasar working with gridsome.
Which is a static site generator similar to vuepress.
"quasar": "1.14.3"
"gridsome": "^0.7.0",
In a similar fashion to other ui toolkits such as Vuetify / Tailwind / Buefy
From what I can gather since quasar is more of a heavyweight
(designed with it's own build system for different outputs and I think with more code for client side responsivness)
This seems to lead to issues such as
Initializing plugins...
Load sources - 0s
Create GraphQL schema - 0.02s
Create pages and templates - 0.02s
Generate temporary code - 0.02s
Bootstrap finish - 0.77s
Compile assets - 6.39s
Execute GraphQL (3 queries) - 0s
Could not generate HTML for "/about/":
TypeError: Cannot read property 'screen' of undefined
at a.data (node_modules/quasar/src/components/layout/QLayout.js:37:0)
at a.<anonymous> (D:\Temp\13\2\test-blog\node_modules\vue\dist\vue.runtime.common.prod.js:6:8369)
at D:\Temp\13\2\test-blog\node_modules\vue\dist\vue.runtime.common.prod.js:6:28667
at D:\Temp\13\2\test-blog\node_modules\vue\dist\vue.runtime.common.prod.js:6:28727
at pn (D:\Temp\13\2\test-blog\node_modules\vue\dist\vue.runtime.common.prod.js:6:28934)
at a.e._init (D:\Temp\13\2\test-blog\node_modules\vue\dist\vue.runtime.common.prod.js:6:32700)
at new a (D:\Temp\13\2\test-blog\node_modules\vue\dist\vue.runtime.common.prod.js:6:30340)
at Vi (D:\Temp\13\2\test-blog\node_modules\vue-server-renderer\build.prod.js:1:66279)
at io (D:\Temp\13\2\test-blog\node_modules\vue-server-renderer\build.prod.js:1:70509)
at ro (D:\Temp\13\2\test-blog\node_modules\vue-server-renderer\build.prod.js:1:70182)
error Command failed with exit code 1.
when building the site to files, although in develop mode I do get a visible output
I'm wondering if there's some additional option I'm missing for SSR
since I'm operating outside of the Quasar build system via UMD
// This is the main.js file. Import global CSS and scripts here.// The Client API can be used here. Learn more: gridsome.org/docs/client-apiimportDefaultLayoutfrom'~/layouts/Default.vue'// Quasar frontendimportQuasarfrom'quasar'import{Dark}from'quasar'import'quasar/dist/quasar.min.css'importiconSetfrom'quasar/icon-set/mdi-v5'exportdefaultfunction(Vue,{ router, head, isClient }){// Add QuasarVue.use(Quasar,{iconSet: iconSet})// Enable dark modeDark.set(true)// Set default layout as a global componentVue.component('Layout',DefaultLayout)}
A ping to the gridsome team requesting Quasar integration would be nice. We already support too many external tools. From our perspective, Quasar already has a CLI which ensures that you get the best experience.
If you require some assistance in regards to how to properly initialize SSR for Quasar, you can take a look in a Quasar CLI generated project in ".quasar" folder after you've "quasar build -m ssr".
Sorry but I'm going to close this ticket.
I think this question has been raised before,
but the conversation seemed to veer away from the use of gridsome
and I think there have been some changes to Quasar since then.
Anyway I've been experimenting to see if I can get the latest version of quasar working with gridsome.
Which is a static site generator similar to vuepress.
"quasar": "1.14.3"
"gridsome": "^0.7.0",
In a similar fashion to other ui toolkits such as Vuetify / Tailwind / Buefy
From what I can gather since quasar is more of a heavyweight
(designed with it's own build system for different outputs and I think with more code for client side responsivness)
This seems to lead to issues such as
when building the site to files, although in develop mode I do get a visible output
I'm wondering if there's some additional option I'm missing for SSR
since I'm operating outside of the Quasar build system via UMD
src/main.js
src/index.html
src/App.vue
The text was updated successfully, but these errors were encountered: