Perplexica: Docker install fails
Describe the bug I’m on Ubuntu 22.04, running in a VM. I don’t have a lot of experience with Node / NPM.
I try a simple docker compose up, and get the following error:
Module not found: Can’t resolve ‘react-text-to-speech’
I can see react-text-to-speech in my node-modules folder. But yarn can’t find it for some reason.
Additional context [+] Building 10.7s (9/9) FINISHED docker:default => [perplexica-frontend internal] load build definition from app.dockerfile 0.0s => => transferring dockerfile: 308B 0.0s => [perplexica-frontend internal] load metadata for docker.io/library/node:alpine 0.3s => [perplexica-frontend internal] load .dockerignore 0.0s => => transferring context: 55B 0.0s => [perplexica-frontend 1/5] FROM docker.io/library/node:alpine@sha256:916b42f9e83466eb17d60a441a96f5cd57033bbfee6a80eae8e3249f34cf8dbe 0.0s => [perplexica-frontend internal] load build context 0.0s => => transferring context: 1.75kB 0.0s => CACHED [perplexica-frontend 2/5] WORKDIR /home/perplexica 0.0s => CACHED [perplexica-frontend 3/5] COPY ui /home/perplexica/ 0.0s => CACHED [perplexica-frontend 4/5] RUN yarn install 0.0s => ERROR [perplexica-frontend 5/5] RUN yarn build 10.4s
[perplexica-frontend 5/5] RUN yarn build:
0.454 yarn run v1.22.19
0.481 $ next build
1.167 Attention: Next.js now collects completely anonymous telemetry regarding usage.
1.167 This information is used to shape Next.js’ roadmap and prioritize features.
1.167 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.168 https://nextjs.org/telemetry 1.168 1.282 ▲ Next.js 14.1.4 1.282 1.369 Creating an optimized production build … 3.319 (node:41) [DEP0040] DeprecationWarning: Thepunycodemodule is deprecated. Please use a userland alternative instead. 3.319 (Usenode --trace-deprecation ...to show where the warning was created) 10.33 Failed to compile. 10.33 10.33 ./components/MessageBox.tsx 10.33 Module not found: Can’t resolve ‘react-text-to-speech’ 10.33 10.33 https://nextjs.org/docs/messages/module-not-found 10.33 10.33 Import trace for requested module: 10.33 ./components/Chat.tsx 10.33 ./components/ChatWindow.tsx 10.33 10.34 10.34 > Build failed because of webpack errors 10.37 error Command failed with exit code 1. 10.37 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (7 by maintainers)
I interrogated Gemini to try to figure out why the backend crashes. Which led to trying docker run --network localhost (container number) and docker run --network 127.0.0.1 (container number), both exited with error. But docker ps -a then showed containers with names like strange_albattani, crazy_yonath and intelligent_nobel. These names show up on codesandbox.io.
I do not understand how they could be “container names” in this project …