coleam00 / bolt.new-any-llm

Prompt, run, edit, and deploy full-stack web applications using any LLM you want!
https://bolt.new
MIT License
3.85k stars 1.58k forks source link

New Dependencies Optimized when starting docker container #356

Open Freffles opened 1 day ago

Freffles commented 1 day ago

Describe the bug

Windows 10: When I start the docker container with docker-compose --profile development up I get the following, when I load the localhost then there is additional info added. Seems like there is something happening behind the scenes and when it is finished I can reload the local host and it seems ok.

Assuming this was a docker issue, I have removed and reinstalled docker multiple times. I have updated node.js and have started with a clean repo (apart from my env file).

What is happening here and what can I do to resolve it?

time="2024-11-21T14:43:36+11:00" level=warning msg="The \"HuggingFace_API_KEY\" variable is not set. Defaulting to a blank string."
time="2024-11-21T14:43:36+11:00" level=warning msg="The \"HuggingFace_API_KEY\" variable is not set. Defaulting to a blank string."
[+] Running 2/2
 ✔ Network boltnew-any-llm_default          Created                                                                0.1s
 ✔ Container boltnew-any-llm-bolt-ai-dev-1  Created                                                               18.7s
Attaching to bolt-ai-dev-1
bolt-ai-dev-1  |
bolt-ai-dev-1  | > bolt@ dev /app
bolt-ai-dev-1  | > remix vite:dev "--host" "0.0.0.0"
bolt-ai-dev-1  |
bolt-ai-dev-1  |   ➜  Local:   http://localhost:5173/
bolt-ai-dev-1  |   ➜  Network: http://172.18.0.2:5173/
bolt-ai-dev-1  | 3:44:38 AM [vite] ✨ new dependencies optimized: remix-island, ai/react, framer-motion, react-toastify, diff, @radix-ui/react-tooltip, node:path, jszip, file-saver, @octokit/rest, date-fns, @radix-ui/react-dialog, istextorbinary, @webcontainer/api, react-resizable-panels, @codemirror/autocomplete, @codemirror/commands, @codemirror/language, @codemirror/search, @codemirror/state, @codemirror/view, react-markdown, @radix-ui/react-dropdown-menu, @uiw/codemirror-theme-vscode, @codemirror/lang-javascript, @codemirror/lang-html, @codemirror/lang-css, @codemirror/lang-sass, @codemirror/lang-json, @codemirror/lang-markdown, @codemirror/lang-wast, @codemirror/lang-python, @codemirror/lang-cpp, @xterm/addon-fit, @xterm/addon-web-links, @xterm/xterm, rehype-raw, remark-gfm, rehype-sanitize, unist-util-visit, shiki
bolt-ai-dev-1  | 3:44:38 AM [vite] ✨ optimized dependencies changed. reloading

Link to the Bolt URL that caused the error

n/a

Steps to reproduce

docker-compose --profile development up

Expected behavior

bolt would just start without needing additional dependencies to load

Screen Recording / Screenshot

No response

Platform

Additional context

No response

Freffles commented 1 day ago

When I can eventually get into my existing project, I see this in my bolt terminal:

~/project
❯ 

~/project
❯ npx create-next-app@latest task-manager --typescript --eslint --yes && cd task-manager && npm install tailwindcss postcss autoprefixer && npx tailwindcss init -p
Need to install the following packages:
create-next-app@15.0.3
Ok to proceed? (y) y
Creating a new Next.js app in /home/project/task-manager.

Using npm.

Initializing project with template: app-tw 

Installing dependencies:
- react
- react-dom
- next

Installing devDependencies:
- typescript
- @types/node
- @types/react
- @types/react-dom
- postcss
- tailwindcss
- eslint
- eslint-config-next

npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm WARN deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
npm WARN deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.

added 375 packages in 19s

140 packages are looking for funding
  run `npm fund` for details
Success! Created task-manager at /home/project/task-manager

^Cnpm install shadcn

^Cnpm run dev

~/project/task-manager 35s
❯ npm install shadcn
npm run dev

> task-manager@0.1.0 dev
> next dev

^Crm package-lock.json idealTree:task-manager: sill idealTree buildDeps

~/project/task-manager 1s
❯ 

~/project/task-manager
❯ npm install

~/project/task-manager 1s
❯ 

~/project/task-manager
❯ npm run dev

> task-manager@0.1.0 dev
> next dev

   Downloading swc package @next/swc-wasm-nodejs... to /home/.cache/next-swc

up to date in 3s

140 packages are looking for funding
  run `npm fund` for details

~/project/task-manager 3s
❯    ▲ Next.js 15.0.3
   - Local:        http://localhost:3000

 ✓ Starting...
 ✓ Ready in 2.9s
 ○ Compiling / ...
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'tunnel-agent' in '/home/project/task-manager/node_modules/sharp'
<w> while resolving 'tunnel-agent' in /home/project/task-manager/node_modules/sharp to a directory
 ✓ Compiled / in 13.2s (642 modules)
 GET / 200 in 13780ms
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'tunnel-agent' in '/home/project/task-manager/node_modules/sharp'
<w> while resolving 'tunnel-agent' in /home/project/task-manager/node_modules/sharp to a directory
 ✓ Compiled in 721ms (294 modules)
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'tunnel-agent' in '/home/project/task-manager/node_modules/sharp'
<w> while resolving 'tunnel-agent' in /home/project/task-manager/node_modules/sharp to a directory