ItzCrazyKns / Perplexica

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

Error after running docker compose. It cannot complete the installation #159

Closed VirtualZardoz closed 1 month ago

VirtualZardoz commented 1 month ago

Describe the bug I get an error message in step 5/5
=> ERROR [perplexica-frontend 5/5] RUN yarn build

To Reproduce Steps to reproduce the behavior:

run the command: docker compose up -d

Expected behavior Screenshot 2024-06-02 113005

=> ERROR [perplexica-frontend 5/5] RUN yarn build 20.6s

[perplexica-frontend 5/5] RUN yarn build: 0.507 yarn run v1.22.19 0.525 $ next build 1.011 Attention: Next.js now collects completely anonymous telemetry regarding usage. 1.012 This information is used to shape Next.js' roadmap and prioritize features. 1.012 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: 1.012 https://nextjs.org/telemetry 1.012 1.096 ▲ Next.js 14.1.4 1.096 1.153 Creating an optimized production build ... 2.602 (node:41) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. 2.602 (Use node --trace-deprecation ... to show where the warning was created) 10.99 (node:139) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. 10.99 (Use node --trace-warnings ... to show where the warning was created) 11.33 (node:139) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. 17.12 ✓ Compiled successfully 17.12 Linting and checking validity of types ... 20.43 Failed to compile. 20.43 20.43 ./components/EmptyChat.tsx:15:22 20.43 Type error: Type '{ size: number; className: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string | undefined; }'. 20.43 Property 'size' does not exist on type 'IntrinsicAttributes & { className?: string | undefined; }'. 20.43 20.43 13 | return ( 20.43 14 |
20.43 > 15 | 20.43 | ^ 20.43 16 | 20.43 17 |
20.43 18 |

20.47 error Command failed with exit code 1. 20.47 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

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

bigsk1 commented 1 month ago

passing a prop called size to this component, which is not defined in its props type

modify in theme/switcher.tsx to read

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

Fixed

cog-data commented 1 month ago

Same bug. The fix is working fine, thanks!

VirtualZardoz commented 1 month ago

passing a prop called size to this component, which is not defined in its props type

modify in theme/switcher.tsx to read

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

Fixed

This worked. Thanks a lot !

ProjectMoon commented 1 month ago

This should probably be added as a PR right?

bigsk1 commented 1 month ago

This should probably be added as a PR right?

Yes most likely I was just to lazy to do it. Was hoping the maintanier would see it and add it with other work.