Skip to content

Start: Full support by @cloudflare/vite-plugin #4473

Closed

Description

@jasongitmail

Which project does this relate to?

Start

Describe the bug

Problem

Tanstack Start and @cloudflare/vite-plugin are not fully compatible with one another. For example, using virtual imports like cloudflare:workflows and cloudflare:workers causes issues; these can be marked external in vite but doing so will cause other issues during either build or deployment.

Solution

@schiller-manuel mentioned he's talking with Cloudflare to improve Tanstack Start compatibility with @cloudflare/vite-plugin.

Creating a tracking issue so we can follow progress without bugging core team for status updates in Discord.

Your Example Website or App

n/a

Steps to Reproduce the Bug or Issue

..

Expected behavior

Dev should be able to add cloudflare() from @cloudflare/vite-plugin to plugins in vite.config.ts to have access to all of the miniflare environment. It should automatically prevent issues when using cloudflare virtual imports from cloudflare:workflows and cloudflare:workers. Etc.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: n/a
  • Version:
"@cloudflare/vite-plugin": "^1.7.2",
"wrangler": "^4.20.3",
"@tanstack/react-query": "^5.80.10",
"@tanstack/react-router": "1.121.27",
"@tanstack/react-router-with-query": "1.121.27",
"@tanstack/react-start": "^1.121.27",
"@tanstack/router-core": "1.121.27",
"@tanstack/router-devtools-core": "1.121.27",
"@tanstack/router-generator": "1.121.27",
"@tanstack/router-plugin": "1.121.27",

Additional context

No response

Activity

  1. developedbyed commented on Jun 21, 2025

    @developedbyed

    Cloudflare also released remote bindings during local development. So you'll pretty much be able to mirror prod enviorment in dev. Keeping my eye on this, really exciting

  2. Folyd commented on Jun 22, 2025

    @Folyd
  3. juliomuhlbauer commented on Jun 22, 2025

    @juliomuhlbauer
    Contributor

    Created an issue: #4500

  4. schiller-manuel commented on Sep 23, 2025

    @schiller-manuel
    Collaborator
  5. alexjball commented on Sep 24, 2025

    @alexjball

    Thank you!!

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions