Skip to content

Slow HMR updates for Vite and Cloudflare #1002

Closed as not planned
Closed as not planned

Description

@vrabota

I have a better stack project setup with Alchemy, raised a ticket as well alchemy-run/alchemy#1376

Installed latest project with better-t-stack and there is very laggy to work on local, each change is taking 30-40 seconds to update.

On logs update I see this:

12:18:59 am [vite] (client) hmr update /src/index.css, /src/index.css?direct, /src/routes/index.tsx, /src/routes/index.tsx?tsr-split=component 12:18:59 am [vite] (ssr) hmr update /src/index.css, /@id/virtual:cloudflare/worker-entry [vite] hot updated: virtual:cloudflare/worker-entry 12:19:14 am [vite] (client) hmr update /src/index.css, /src/index.css?direct, /src/routes/index.tsx, /src/routes/index.tsx?tsr-split=component 12:19:14 am [vite] (ssr) hmr update /src/index.css, /@id/virtual:cloudflare/worker-entry [vite] hot updated: virtual:cloudflare/worker-entry
import tailwindcss from "@tailwindcss/vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import viteReact from "@vitejs/plugin-react";
import alchemy from "alchemy/cloudflare/tanstack-start";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
  plugins: [tsconfigPaths(), tailwindcss(), tanstackStart(), viteReact(), alchemy()],
  server: {
    port: 3001,
  },
});

Activity

  1. vrabota commented on May 3, 2026

    @vrabota
    Author

    @AmanVarshney01 can we please check this part? not sure where is the issue, but any new project have the same issue HMR simply not working, you need to restart dev server on each change to see your updates

  2. AmanVarshney01 commented on Oct 21, 2026

    @AmanVarshney01
    Owner

    The Alchemy TanStack Start Vite plugin from this setup was removed in Alchemy v2 (#1144). If you still see this on the latest version, please reopen or open a new issue with the details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions