Closed mystogan99 closed 2 weeks ago
You can temporarily remove the <ThemeSwitcher/>
from EmptyChat.tsx and Navbar.tsx to fix it.
Refer to this PR #168
I am getting the same error. "You can temporarily remove the from EmptyChat.tsx and Navbar.tsx to fix it." what should I remove from EmtpyChat.tsx and Navbar.tsx files ?
I am getting the same error. "You can temporarily remove the from EmptyChat.tsx and Navbar.tsx to fix it." what should I remove from EmtpyChat.tsx and Navbar.tsx files ?
Sorry, there are some words lost. You should remove the <ThemeSwitcher/>
. I re-edit my reply above.
Another workaround: we can leave ThemeSwitcher
in place and update the definition.
In ui/components/theme/Switcher.tsx
, update the existing definition of the component to add an optional size
prop, e.g.:
const ThemeSwitcher = ({ className, size }: { className?: string; size?: number })
@eviljosh Your solution works perfectly well. I am closing this now.
Describe the bug Running yarn build for the perplexica-frontend project fails with a type error in the EmptyChat.tsx component. The error message indicates that the size property passed to the ThemeSwitcher component does not exist on the expected prop types.
To Reproduce Steps to reproduce the behavior:
docker compose up -d --build
See error
Expected behavior The yarn build command should compile the project successfully without any type errors.
Screenshots
Additional context