ItzCrazyKns / Perplexica

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

ui installation bug/issue running npm run build #174

Closed issa2k23 closed 1 week ago

issa2k23 commented 3 weeks ago

**De(Perplexica) issa@23Lap:~/perplexica/Perplexica/ui$ npm run build

perplexica-frontend@1.6.0 build next build

▲ Next.js 14.1.4

./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 |

(Perplexica) issa@23Lap:~/perplexica/Perplexica/ui$scribe the bug** A clear and concise description of what the bug is.

just follow the steps of the installation process, ui side doesn't build, followed the steps to letter.

5a9awneh commented 3 weeks ago

Same as #163 ... Fix

kevin4801 commented 3 weeks ago

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

[perplexica-frontend 5/5] RUN yarn build: 0.397 yarn run v1.22.19 0.423 $ next build 1.021 Attention: Next.js now collects completely anonymous telemetry regarding usage. 1.022 This information is used to shape Next.js' roadmap and prioritize features. 1.022 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.022 https://nextjs.org/telemetry 1.022 1.122 ▲ Next.js 14.1.4 1.122 1.193 Creating an optimized production build ... 2.904 (node:41) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. 2.904 (Use node --trace-deprecation ... to show where the warning was created) 12.55 (node:103) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. 12.55 (Use node --trace-warnings ... to show where the warning was created) 12.99 (node:103) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. 20.36 ✓ Compiled successfully 20.36 Linting and checking validity of types ... 24.75 Failed to compile. 24.75 24.75 ./components/EmptyChat.tsx:15:22 24.75 Type error: Type '{ size: number; className: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string | undefined; }'. 24.75 Property 'size' does not exist on type 'IntrinsicAttributes & { className?: string | undefined; }'. 24.75 24.75 13 | return ( 24.75 14 |
24.75 > 15 | 24.75 | ^ 24.75 16 | 24.75 17 |
24.75 18 |

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

What should i do ?

WanQuanXie commented 3 weeks ago

You can temporarily remove the <ThemeSwitcher/> from EmptyChat.tsx and Navbar.tsx. Refer to this PR #168

ItzCrazyKns commented 1 week ago

Fixed in the latest release, please re-install Perplexica making sure the previous images are deleted (if using Docker).