ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
10.67k stars 931 forks source link

While Running For first time, got this error #202

Closed 7990satyam200 closed 1 week ago

7990satyam200 commented 2 weeks ago

11.04 Retrying 1/3... 16.51 ✓ Compiled successfully 16.51 Linting and checking validity of types ... 20.26 Failed to compile. 20.26 20.26 ./components/EmptyChat.tsx:15:22 20.26 Type error: Type '{ size: number; className: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string | undefined; }'. 20.26 Property 'size' does not exist on type 'IntrinsicAttributes & { className?: string | undefined; }'. 20.26 20.26 13 | return ( 20.26 14 |
20.26 > 15 | 20.26 | ^ 20.26 16 | 20.26 17 |
20.26 18 |

20.29 error Command failed with exit code 1. 20.29 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

failed to solve: process "/bin/sh -c yarn build" did not complete successfully: exit code: 1 (base) orion

mystogan99 commented 2 weeks ago

Follow these steps to fix:

  • cd ui/components/theme/
  • nano Switcher.tsx

Change the component declaration as follows:

const ThemeSwitcher = ({ className }: { className?: string, size?: number })

This should fix the problem.

rb81 commented 1 week ago

+1 @mystogan99's solution works for me!

ItzCrazyKns commented 1 week ago

Fixed in the latest release