sfxcode / nuxt3-primevue-starter

Build your VUE.js App with Nuxt3 . First Class PrimeVUE 4 support. Formkit Validation included.
https://nuxt3-primevue-starter.netlify.app
MIT License
331 stars 72 forks source link

error 500 primevue not installed when ssr:true #5

Closed robthepaper closed 2 years ago

robthepaper commented 2 years ago

Hi, does this starter works in ssr mode? I have this message when I set it on true.

sfxcode commented 2 years ago

Hi,

had some issues with SSR and chart.js in primevue with ssr. Actual version is without chart.js and seems to work fine with ssr. Actual demo on netlify use ssr.

Hope it is working also for you,

Greetings Tom

robthepaper commented 2 years ago

Hi, ok. but is it normal that we have ssr:false in nuxt.config.ts ?

export default defineNuxtConfig({ ssr: false,

when set to true it doesn't work.

sfxcode commented 2 years ago

Hi,

in the current version (0.6.3) ssr is set to true:

  ssr: true,
  runtimeConfig: {
    public: {
      APP_VERSION: pkg.version,
      APP_NAME: pkg.name,
    },
  },

and for me ssr seems to work fine (also published on netlify).

Maybe you have to clear node_modules and update dependencies to make it also work for you. Tested on my Mac with Node 16 ...

Good luck,

Tom

robthepaper commented 2 years ago

yes it's working indeed, I wasn't using the right version ^^ thanks!