Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate asset paths added to @fastify/static instance for assets #201

Open
2 tasks done
FrancoRATOVOSON opened this issue Feb 22, 2025 · 2 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@FrancoRATOVOSON
Copy link

FrancoRATOVOSON commented Feb 22, 2025

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

^5.2.1

Plugin version

8.0.0-alpha.2

Node.js version

22.13.0

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

15.3.1

Description

This error happens afer I build the app and try to run it in production mode.

In the repos I provided, you just have to npm run build and start.

PS: this repository aims to be my contribution to this prject. 'Till you guys are able to fully support typescript and update the doc & examples, I created this repository to provide example & templates to impatient users like me who can't wait to use this amazing tool.

Link to code that reproduces the bug

https://github.com/FrancoRATOVOSON/fastify-vite-examples/tree/fastify-vite-issue-201/fastify-vite/react-ssr-react-router

Expected Behavior

No response

@Costa404
Copy link

Costa404 commented Feb 22, 2025

Hey, can u enable forks for easier contributions?

@FrancoRATOVOSON
Copy link
Author

FrancoRATOVOSON commented Mar 4, 2025

Hey, can u enable forks for easier contributions?

Sorry for the late answer, it's a public repos, I think you can fork it

@galvez galvez changed the title Error: "root" option array contains one or more duplicate paths Duplicate asset paths added to @fastify/static instance for assets Mar 31, 2025
@galvez galvez self-assigned this Mar 31, 2025
@galvez galvez added the bug Something isn't working label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants