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

Git pull results in "[vite] Pre-transform error: Failed to resolve import "@radix-ui/react-tooltip" from "app/components/chat/Messages.client.tsx". Does the file exist?" #348

Open nigelp opened 1 day ago

nigelp commented 1 day ago

Describe the bug

Bolt fails to load properly after a Git pull to my local install.

Link to the Bolt URL that caused the error

http://localhost:5173/

Steps to reproduce

  1. Git pull origin main
  2. Restart Bolt (pnpm run dev)
  3. server loads at :5173
  4. Incomplete load (ie no API Key box, and app unresponsive)
  5. Error messages appears in console - [vite] Pre-transform error: Failed to resolve import "@radix-ui/react-tooltip" from "app/components/chat/Messages.client.tsx". Does the file exist?

Expected behavior

Expect the app to load as usual.

Screen Recording / Screenshot

No response

Platform

Additional context

No response

chrismahoney commented 1 day ago

Can you verify that your repo is up to date with main branch of this repo? There was an add to package.json 2 days ago using @radix-ui/react-tooltip related to the addition of rewind & branching behavior icons on hover. Just updated my fork to latest and was able to install & run dev okay.

If that doesn't work in your environment, this is a bug. Please reply with results, likely we can close this if that works for you.

Note: There is discussion of adding a dev branch to prevent out-of-date errors, standby in the community site for more info there.

IamOneInx commented 1 day ago

I am having the Same Issue. did a Git Pull from the Bolt.new git directory.

crashed it.

itsmebcc commented 1 day ago

Same issue for me. Was resolved from pulling new package.json. For some reason "git pull" did not pull down the updated package.json

chrismahoney commented 1 day ago

package.json and pnpm-lock.yaml both reference this package at version ^1.1.4. pnpm install should be run before attempting to either run dev locally, or via docker otherwise this package will not be available to oTToDev.

nigelp commented 1 day ago

@chrismahoney oh yes indeed that worked, sweet as a nut. :) Git pull, pnpm install, dev run, refresh browser. Bingo! And the Revert, Prompt enhancer and Fork features look absolutely OUTSTANDING! Great job to everyone working on this right now. Amazing!

chrismahoney commented 1 day ago

Git pull, pnpm install, dev run, refresh browser.

Beautiful. I'll leave this issue open for a bit in case anyone has any trouble, but sounds like @nigelp has it right!

artisleilands commented 1 day ago

Same here, did npm run dockerbuild and docker-compose --profile development up according to the instructions, got the same error. pnpm install helped to run it without Docker, the only way to make it work with Docker was purging everything by docker system prune -a (use at your own risk!!!). Had to rebuild and re-compose everything, now it works with less errors. Now I get this:

GET http://localhost:1234/v1/models constants.ts:228 
net::ERR_CONNECTION_REFUSED
Jeffuy commented 1 day ago

There were new dependencies in the last commit.

pnpm install should help you.