You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: src/hooks/useCurrentChat.ts:142:23 - error TS2367: This comparison appears to be unintentional because the types 'ChatRole.USER' and 'ChatRole.ASSISTANT' have no overlap
#82
Closed
hdnh2006 opened this issue
Oct 16, 2024
· 1 comment
I am facing some issues while trying to compile the extension from source using yarn build
yarn build
yarn run v1.22.22
$ tsc && vite build
src/hooks/useCurrentChat.ts:142:23 - error TS2367: This comparison appears to be unintentional because the types 'ChatRole.USER' and 'ChatRole.ASSISTANT' have no overlap.
142 if (p[index] && p[index].role === ChatRole.ASSISTANT) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in src/hooks/useCurrentChat.ts:142
error Command failed with exit code 2.
I know none about Typescript, so could you please check if there is a bug? otherwise, please let me know what I am doing wrong.
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hello,
I am facing some issues while trying to compile the extension from source using
yarn build
I know none about Typescript, so could you please check if there is a bug? otherwise, please let me know what I am doing wrong.
Thanks in advance
The text was updated successfully, but these errors were encountered: