fastify-vite
fastify-vite copied to clipboard
Fastify server fail to start in production mode due to: AssertionError [ERR_ASSERTION]: The first character of a path should be `/` or `*`
Prerequisites
- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.24.3
Plugin version
6.0.7
Node.js version
20.16.0
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
Windows 10
Description
Affected OS: Windows
In this project,
after running pnpm i and pnpm build,
pnpm start fails with following error:
fix: AssertionError [ERR_ASSERTION]: The first character of a path should be `/` or `*`
at Router.on (C:\Users\...\node_modules\.pnpm\[email protected]\node_modules\find-my-way\index.js:112:3)
Link to code that reproduces the bug
https://github.com/platformatic/ssr-performance-showdown/tree/5804c69447eb8b1f2828ad12c0e021f1c1952e36/solid
Expected Behavior
Fastify server should not fail in production mode in Windows.