fastify-vite icon indicating copy to clipboard operation
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 `*`

Open sudo-barun opened this issue 1 year ago • 0 comments

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.

sudo-barun avatar Aug 29 '24 10:08 sudo-barun