frandiox / vite-ssr

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

vite-ssr middlewave mode in nestjs show warning #180

Open zhuchentong opened 1 year ago

zhuchentong commented 1 year ago

I use vite-ssr for nestjs framework, that's worked.but some warning still display.

vite-ssr doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.

[Vue Router warn]: No match found for location with path "/sw.js/"

i don't konw how to resolve that

the reproduct demo is:

https://github.com/zhuchentong/vite-ssr-demo/tree/vite-ssr

the dependencies version is: vite 3 nestjs 9 vite-ssr 0.16.0