frandiox / vite-ssr

Use Vite for server side rendering in Node
MIT License
823 stars 91 forks source link

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

Open nathanmrtns opened 10 months ago

nathanmrtns commented 10 months ago

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?

nathanmrtns commented 10 months ago

Probably related - https://github.com/frandiox/vite-ssr/issues/208

but I tried the solution and I still the error.

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