Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Directory 'ui' does not exist #71

Open
mqd273 opened this issue Apr 4, 2024 · 5 comments
Open

RuntimeError: Directory 'ui' does not exist #71

mqd273 opened this issue Apr 4, 2024 · 5 comments

Comments

@mqd273
Copy link

mqd273 commented Apr 4, 2024

python run search_with_lepton . exception

File "search_with_lepton\search_with_lepton.py", line 632, in ui
return StaticFiles(directory="ui")
File "Local\Programs\Python\Python310\lib\site-packages\starlette\staticfiles.py", line 59, in init
raise RuntimeError(f"Directory '{directory}' does not exist")
RuntimeError: Directory 'ui' does not exist

@a136214808
Copy link

I met the same problem, I don't know how to fix it.

@zhangfulei6521
Copy link

If your node version is too low, it will report an error and cannot be packaged. I also encountered the same problem, and he told me that the version is too low

@Stillerman
Copy link

You have to run

npm install
npm run build

inside the web directory to build the ui folder

@tc0715888
Copy link

You can first set up locally, upload the UI folder to the server after successful compilation, and then execute BACKEND=BING python search_with_lepton.py!

@jiaohuix
Copy link

next build

▲ Next.js 14.0.4

✓ Creating an optimized production build
✓ Compiled successfully

./src/app/components/answer.tsx
54:33 Warning: Using <img> could result in slower LCP and higher bandwidth. Consider using <Image /> from next/image to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
54:33 Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text
82:31 Warning: Using <img> could result in slower LCP and higher bandwidth. Consider using <Image /> from next/image to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element

./src/app/components/preset-query.tsx
7:39 Warning: React Hook useMemo has an unnecessary dependency: 'query'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps

./src/app/components/result.tsx
30:6 Warning: React Hook useEffect has a missing dependency: 'rid'. Either include it or remove the dependency array. react-hooks/exhaustive-deps

./src/app/components/sources.tsx
29:11 Warning: Using <img> could result in slower LCP and higher bandwidth. Consider using <Image /> from next/image to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element

info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
✓ Linting and checking validity of types
Collecting page data .Killed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants