Skip to content

No export named useSyncExternalStoreWithSelector with Tanstack Start #1879

@GenericNerd

Description

@GenericNerd

Describe the bug

Whenever the useForm hook is used within a Tanstack Start project, the following error appears:

The requested module '/node_modules/.pnpm/[email protected][email protected]/node_modules/use-sync-external-store/shim/with-selector.js?v=b2949b83' does not provide an export named 'useSyncExternalStoreWithSelector'

Your minimal, reproducible example

https://stackblitz.com/edit/vitejs-vite-jqagntfy

Steps to reproduce

  1. Create a new Tanstack Start project via pnpm create @tanstack/start@latest
  2. Install @tanstack/react-form-start
  3. Import and attempt to use a form variable through the useForm hook.

Expected behavior

I expect the useForm hook to not through an export not found error.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • Linux (EndeavourOS)
  • Chrome

TanStack Form adapter

react-form

TanStack Form version

1.26.0

TypeScript version

5.9.3

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