Skip to content

Tanstack Start + Solid Query + Nitro bug #6151

@jcsmithf22

Description

@jcsmithf22

Which project does this relate to?

Start

Describe the bug

I started with a new Tanstack Start project, created with the cli, using Nitro and including Tanstack Query.

bun create @tanstack/start@latest --framework solid

To reproduce the bug, all I need to do is start the development server and go to http://localhost:3000/demo/tanstack-query (the Tanstack query demo route). If I navigate to this page via the navigation menu, I do not have an error. If I navigate to it using the search bar (or refresh the page), I get the following error:

Cannot read properties of undefined (reading 'defaultQueryOptions').

The issue seems to disappear if I remove nitro() from vite.config.ts, but I imagine that this is not a valid solution.

Your Example Website or App

https://github.com/jcsmithf22/tanstack-start-solid-query-reproduction

Steps to Reproduce the Bug or Issue

  1. Install dependencies with bun install
  2. Start development server with bun run dev
  3. Navigate to http://localhost:3000/demo/tanstack-query

Expected behavior

I expected to not receive this error at all, and to view the page as normal.

Screenshots or Videos

No response

Platform

  • Start Version: 1.141.7
  • Nitro Version: 3.0.1-alpha.1
  • OS: Windows (WSL Arch Linux)
  • Browser: Chrome
  • Browser Version: 143.0.7499.146
  • Bundler: Vite
  • Bundler Version: 7.3.0

Additional context

No response

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