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

Erro at npm run build` in the `ui` #217

Closed devops-snap-shoot closed 1 week ago

devops-snap-shoot commented 1 week ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. npm run build in the ui (without docker)
  2. See error: Linting and checking validity of types ...Failed to compile.

./components/EmptyChat.tsx:15:22 Type error: Type '{ size: number; className: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string | undefined; }'. Property 'size' does not exist on type 'IntrinsicAttributes & { className?: string | undefined; }'.

13 | return ( 14 |

15 | | ^ 16 | 17 |

18 |

Expected behavior // Update the props type to include size type ThemeSwitcherProps = { className?: string; size?: number; // Add the size property here }; After the sugested update the front end was bult!

AIisaweapon commented 1 week ago

Or just delete the size attribute ^^

ItzCrazyKns commented 1 week ago

Fixed in #168