cyco130 / vavite

Develop server-side applications with Vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error on vite-ssr-plugin dev launch

uplight-dev opened this issue · comments

Could not resolve entry module "serve/index.html".
error during build:
RollupError: Could not resolve entry module "serve/index.html".

Can I get a reproduction please? Examples in the repo are working for me.

I am getting this same issue when trying to clone the fastify example:

npx degit cyco130/vavite/examples/fastify-vite-plugin-ssr

Also get the same error when trying it on StackBlitz:

$ vavite serve
undefined
vavite: running build step default (1/1)
vite v4.3.8 building for production...
✓ 0 modules transformed.
✓ built in 7ms
Could not resolve entry module "serve/index.html".
error during build:
Error: Could not resolve entry module "serve/index.html".
    at error (file:///home/projects/nbwivwpko.github/node_modules/rollup/dist/es/shared/node-entry.js:2150:30)
    at loadEntryModule (file:///home/projects/nbwivwpko.github/node_modules/rollup/dist/es/shared/node-entry.js:24025:20)

Hey there,

I've tried the ssr-react-express and nestjs-vite-plugin-ssr examples and am still getting this same issue even after 1.8.0:
npx degit cyco130/vavite/examples/ssr-react-express
npx degit cyco130/vavite/examples/nestjs-vite-plugin-ssr

Can also confirm, still getting issue with the fastify example.

Thanks for reporting again, everyone.

I pinpointed the issue. It's a mismatch of behavior between npm and pnpm (which I use) that caused me to think it was fixed earlier. Will be fixed soon.

Fixed in 1.8.1.

@lulzsun Fastify example seems to have a second, unrelated bug. I opened another issue for it.

Just tried it with the new version and everything works as advertised. Thanks!