antfu-collective / vite-ssg

Static site generation for Vue 3 on Vite
MIT License
1.27k stars 129 forks source link

vue 3.4 Feature flag __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ is not explicitly defined #405

Open rezelute opened 2 weeks ago

rezelute commented 2 weeks ago

Describe the bug

When using vite ssg with the latest version of Vue 3.4, im getting the following warning: vue 3.4 Feature flag __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ is not explicitly defined

Reproduction

install vite ssg with vue 3.4

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
    Memory: 6.99 GB / 31.92 GB
  Binaries:
    Node: 20.14.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (126.0.2592.61)

Used Package Manager

npm

Validations

Contributions

rezelute commented 2 weeks ago

I have solved this by adding the lines below however im unsure if its trying to tell me that there is a genuine problem. Is it just because im running the dev server?

define: {
         __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false,
      },