Azure-Samples / Azure-Samples/miyagi

App is failing while running locally, Unhandelled runtime error

Open
#236 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
752
Forks
256
PR merge metrics
No merged PRs in 30d

Description

![image](https://github.com/user-attachments/assets/5e42cf82-2e54-447f-a2df-fd1048e7531b)
chat-session-list.tsx
error-message

Text
Argument of type '(prevUserInfo: UserInfoProps) => { chatId: any; input: string; userId: string; userName: string; firstName: string; lastName: string; age: number; riskLevel: string; annualHouseholdIncome: number; favoriteBook: string; favoriteAdvisor: string; }' is not assignable to parameter of type 'SetStateAction<{ input: string; userId: string; userName: string; chatId: string | undefined; firstName: string; lastName: string; age: number; authorRole: number; riskLevel: string; annualHouseholdIncome: number; favoriteBook: string; favoriteAdvisor: string; }>'.
Type '(prevUserInfo: UserInfoProps) => { chatId: any; input: string; userId: string; userName: string; firstName: string; lastName: string; age: number; riskLevel: string; annualHouseholdIncome: number; favoriteBook: string; favoriteAdvisor: string; }' is not assignable to type '(prev: { input: string; userId: string; userName: string; chatId: string | undefined; firstName: string; lastName: string; age: number; authorRole: number; riskLevel: string; annualHouseholdIncome: number; favoriteBook: string; favoriteAdvisor: string; }) => { ...; }'.
Types of parameters 'prevUserInfo' and 'prev' are incompatible.
Type '{ input: string; userId: string; userName: string; chatId: string | undefined; firstName: string; lastName: string; age: number; authorRole: number; riskLevel: string; annualHouseholdIncome: number; favoriteBook: string; favoriteAdvisor: string; }' is not assignable to type 'UserInfoProps'.
Types of property 'chatId' are incompatible.
Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.ts(2345)
const randomChatSession: any

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.