#node_modules/.vite/deps/ is missing a vue.js file

1 messages · Page 1 of 1 (latest)

zinc quarry
#

Hi folks,

This is my first post in this community as well as my first vite-vue project.
I've created an application instance with the createApp function according to the "Quick Start" section in Vue.js documentation.

import { createApp, ref } from 'vue'

const app = createApp({
    setup() {
        return {
            count: ref(0)
        }
    }
});

app.mount('#app');

and I'm getting this log in the console

GET https://localhost:3000/node_modules/.vite/deps/vue.js?v=6516fsda net::ERR_ABORTED 504 (Gateaway Timeout)

The directory node_modules/.vite/deps/ is missing a vue.js file.

Does anyone know why?

Oh, I'm on vite 5.0.10, vue 3.3.11 and @vitejs/plugin-vue 4.5.2.
If you'd like to see a vite.config file, no problem.

zinc quarry
#
1:47:16 PM [vite] hmr update /src/js/globals/app.ts
2023-12-16T13:47:16.520144161Z ✘ [ERROR] Could not read from file: /app/build/src/vue/runtime-dom
2023-12-16T13:47:16.520271581Z 
2023-12-16T13:47:16.520299513Z     node_modules/vue/dist/vue.runtime.esm-bundler.js:1:42:
2023-12-16T13:47:16.520321549Z       1 │ import { initCustomFormatter, warn } from '@vue/runtime-dom';
2023-12-16T13:47:16.520359774Z         ╵                                           ~~~~~~~~~~~~~~~~~~
2023-12-16T13:47:16.520380919Z 
2023-12-16T13:47:16.532042680Z 1:47:16 PM [vite] error while updating dependencies:
2023-12-16T13:47:16.532423425Z Error: Build failed with 1 error:
2023-12-16T13:47:16.533441877Z node_modules/vue/dist/vue.runtime.esm-bundler.js:1:42: ERROR: Could not read from file: /app/build/src/vue/runtime-dom
2023-12-16T13:47:16.533523659Z     at failureErrorWithLog (/app/build/node_modules/esbuild/lib/main.js:1650:15)
2023-12-16T13:47:16.533549002Z     at /app/build/node_modules/esbuild/lib/main.js:1058:25
2023-12-16T13:47:16.533566546Z     at /app/build/node_modules/esbuild/lib/main.js:1526:9
2023-12-16T13:47:16.533584631Z     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-12-16T13:47:16.541908680Z (node:25) UnsupportedWarning: Status message is not supported by HTTP/2 (RFC7540 8.1.2.4)
2023-12-16T13:47:16.542149630Z (Use `node --trace-warnings ...` to show where the warning was created)