Closed
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the issue has not already been raised
Issue
I get this error if I try to run the build code without the --dev flag:
node_modules/.cache/@fastify/vite/vite.config.dist.json does not exist. Production builds will load the entire "vite" dependency. If this is not intentional, make sure to use the viteFastify plugin in your vite config.
This page explains the error I'm getting, but it is meant for SSR, and I can't figure out how to fix it. Please help me out.
I also recommend adding a clause in the page for the same. I'd be happy to contribute a PR once I get a solution.