Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App is failing while running locally, Unhandelled runtime error #236

Open
sumitmalik51 opened this issue Oct 25, 2024 · 1 comment
Open

Comments

@sumitmalik51
Copy link

image
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

@rajurh
Copy link

rajurh commented Nov 12, 2024

Now it should be working the above error is related to https://copilotdemo.app service was down and in the future if you encounter then run the chat copilot app locally and update the ui/typescript env file value accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants