Skip to content

Commit e07d0b0

Browse files
authored
fix: import error when @tanstack/db add-on is added. (#248)
fix: dependency import error when @tanstack/db is added. The application was failing to start due to missing @tanstack/db module. Fixed by changing to @tanstack/react-db
1 parent be8b634 commit e07d0b0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

frameworks/react-cra/add-ons/db/assets/src/hooks/demo.useChat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useLiveQuery } from '@tanstack/react-db'
33

44
import { messagesCollection, type Message } from '@/db-collections'
55

6-
import type { Collection } from '@tanstack/db'
6+
import type { Collection } from '@tanstack/react-db'
77

88
function useStreamConnection(
99
url: string,

frameworks/react-cra/add-ons/db/assets/src/routes/demo/db-chat-api.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { createFileRoute } from '@tanstack/react-router'
22
import { json } from '@tanstack/react-start'
33

4-
import { createCollection, localOnlyCollectionOptions } from '@tanstack/db'
4+
import {
5+
createCollection,
6+
localOnlyCollectionOptions,
7+
} from '@tanstack/react-db'
58
import { z } from 'zod'
69

710
const IncomingMessageSchema = z.object({

0 commit comments

Comments
 (0)