vite server always return 'Not Found'
See original GitHub issuewhen I run vite
, the server returns a page with ‘Not Found’
koa@2.13.0 won’t recognize middleware after calling app.callback()
Reproduction
https://github.com/vitejs/vite/blob/master/src/node/server/index.ts#L63
the problem is: app.callback()
called before all of app.use()
System Info
- required
vite
version: 1.0.0-rc.4 - required Operating System: macos 10.13.6
- required Node version: 12.18.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Troubleshooting - Vite
Vite cannot handle and does not support code that only runs on non-strict mode (sloppy mode). This is because Vite uses ESM and...
Read more >Vue 3 + Vite dev server returns 404 on page reload of ...
I've isolated the problem to Vite. Everything works fine with Vue CLI. Checked vue-router history mode docs and in caveat section it says...
Read more >Troubleshooting | Vite Ruby
First, verify that the dev server is reachable by starting a new console session and running: > ViteRuby.instance.dev_server_running? If it returns false ...
Read more >Vite Headache - Endless 404 in console - Laracasts
I recently installed a new Laravel project and it now seems to have come with Vite instead of Webpack which is fine but...
Read more >Configuring Vitest
vitest will read your root vite.config.ts when it is present to match ... Externalized dependencies will not be applied Vite's transformers ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wulisensen
make sure that the package
vite
in node_modules depends on koa-compose@4.1.0if you use
yarn
,add following config to yourpackage.json
@LeoJiaXin i reinstall koa-compose@4.1.0 and resolved it