Vue3 + Vite Error HMR while editing typescript file

48 Views Asked by At

I have an issue on my vue app, I enabled the HRM in my application, it's working properly for vue file but when i'm editing a typescript file I have this error Uncaught TypeError: Cannot read properties of null (reading 'nextSibling') I'm using these version for vue and vite

"vitest": "^0.33.0",
"vue": "^3.2.47",

My vite config

export default defineConfig(({ mode }) => {
  const env = loadEnv(mode, process.cwd(), "");
  return {
    base: "./",
    plugins: [
      vue(),
    ],
    server: {
      watch: {
        usePolling: true,
      }
    },
}
});

Do you have any idea about this error?

0

There are 0 best solutions below