Skip to content

Running SPA mode build in production mode errors "No client distribution bundle found." #194

Closed
@0xDevansh

Description

@0xDevansh

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions