frandiox/vite-ssr

Failed to load url __vite-optional-peer-dep:@vueuse/head:vite-ssr

nathanmrtns opened this issue · 1 comments

I have added the plugin and the configurations, but when I try to run it throws the following error:

Failed to load url __vite-optional-peer-dep:@vueuse/head:vite-ssr (resolved id: virtual:__vite-optional-peer-dep:@vueuse/head:vite-ssr/index.js) in {project path}/node_modules/vite-ssr/vue/entry-server.js. Does the file exist?

after pressing esc I'm still able to browse through the routes but on each route change I see the same error.

I am running with vite-ssr dev --open and I don't have a entry-server.js file, since the installation instructions don't mention any and also the examples don't have such file.

Am I missing something?

Probably related - #208

but I tried the solution and I still the error.

What it worked for me was installing "@vueuse/head": "^0.6.0",