coleam00 / bolt.new-any-llm

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

FIXED: Preview Not Showing (Vite issue) #403

Closed Xerox-777 closed 12 hours ago

Xerox-777 commented 1 week ago

Describe the bug

Hey all - I was having this issue and saw a lot of others had it too.

Funny enough, I decided to ask my bolt.new chat what the problem was, and here's what it said:

Using: claude-3-5-sonnet-latest (Anthropic)

Me: "The preview is not showing. Can you please tell me why?"

Bolt: Let me check the preview issue. The most common cause is that we need to create a Vite configuration file to properly set up React.

Fix Vite Configuration Click to open Workbench

Create vite.config.js Run command npm run dev This should resolve the preview issue. The dev server should now properly render the React application. If you're still not seeing the preview, please let me know and I'll help troubleshoot further."

And, guess what? It works now! Ha!

(Note: I'm laughing at myself because I was searching for answers on google, when meanwhile, we live in a world now where you can tell your computer to fix itself - and it does! lol)

Link to the Bolt URL that caused the error

localhost

Steps to reproduce

  1. Prompt: "The preview is not showing. Can you please tell me why?"
  2. Terminal: npm install
  3. Terminal: npm run dev

Expected behavior

Preview of your app should work!

Screen Recording / Screenshot

bolt new-preview-fix

Platform

Additional context

Hope this helps!

remisco commented 1 week ago

Salut, jai le même problème d'affichage de preview, cela fait plusieurs jours également que je tente par tous les moyens d'y arriver... J'ai également posé la question mais je n'ai pas eu la même réponse. Je vais pouvoir tester ton astuce.

remisco commented 1 week ago

Je ne trouve pas workbench. J'utilise pinokio. Je ne sais pas si je dois télécharger workbench sur le net ou si il est deja présent en tant dossier système sur Windows. Aurais tu une capture d'écran a partager ou une vidéo d''explication. Merci

desireco commented 6 days ago

I solved it the other way, but it is cool how you went about it. My issue was as far as I can tell, that I need to run it in Google Canary and not Arc

jvxcampos commented 3 days ago

I have exactly the same problem, even with everything updated. I can't solve it, if you can make a video or give tips please

remisco commented 3 days ago

Bonjour utilise l'api mistral Mistral large

jvxcampos commented 2 days ago

Bonjour utilise l'api mistral Mistral large

I had already tested it with the Mistral API and it worked perfectly, but I really want to run it through Ollama locally

dustinwloring1988 commented 12 hours ago

marking as closed since it is fixed