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

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

Comments

@hdnh2006
Copy link

hdnh2006 commented Oct 16, 2024

Hello,

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

@Royal-lobster
Copy link
Owner

Royal-lobster commented Oct 25, 2024

This one is fixed should be also fixed #89, Now we are using biome and pnpm !

@github-project-automation github-project-automation bot moved this from Backlog to Done in 💬 Project Syncia Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants