vite-ssr icon indicating copy to clipboard operation
vite-ssr copied to clipboard

vite-ssr middlewave mode in nestjs show warning

Open zhuchentong opened this issue 3 years ago • 0 comments

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

zhuchentong avatar Sep 21 '22 02:09 zhuchentong