"Preview" tab is always HTML code and doesn't render properly

The content displayed in the “Preview” tab is always HTML code and doesn’t render properly. My program is just a simple calculator, and I’m using the DeepSeekV3 model. Why is this happening?

Seems to be a bug and not working well at the moment for deepseek + bolt. Did not have this with deepseek-reasoner (R1). Maybe try this or switch to another provider+model.

I noticed this recently as well. Good to know it isn’t just me.

1 Like

There is this PR, that could help in the future, but maybe needs some more work on it: fix: git import issue when importing bolt on bolt by thecodacus · Pull Request #1020 · stackblitz-labs/bolt.diy · GitHub

Getting the same thing. Also, it keeps telling me I can access it at localhost:5173 which is my local console, but nothing is sent if I try that, then it had me open 5174 and had vite start on that and it says server didn’t return anything and <local_IP>:5174 returns a blank page. Guessing they are all related.

I tried what you said, but it’s still the same problem. I tried using Corer and found it works. I’ve tried all these versions to see what the problem is

I am trying, thank you very much

I think the issue is with the way Deepseek is generating HTML angle brackets within Bolt. If you see ampersand LT and ampersand GT in your html code, you probably have the same issue. Try promoting Deepseek to regenerate all your html code with literal angle brackets instead of html entities. That seemed to work for me.

1 Like

Thank you very much, it was successful. As you mentioned, the problem in the source code has been bothering me for a day. I didn’t carefully read the source code.

My question now is, if Deepseek Chat needs to make modifications every time a project is created, it would be too troublesome. Is there a good way to make the source code generated by Deepseek output according to normal code,How did you solve this problem

@385544726 I dont really understand what your problem is. Can you rephrase it :slight_smile:


There is a problem with the code generated using Deepseek chat& lt,&gt, You need to replace ‘<’ and ‘>’ in the source code so that the page generated in preview can function properly

ok, but as @MrDee said, you should not fix this yourself manually, instead prompt the llm to do it. Thats why I dont understand what the problem is

After testing on my end, I found that the DeepSeekcoder is using API keys, so I have been experiencing issues with the index.html code, which is a problem with &lt and &gt. Is it an LLM issue or a need to adjust the format of Bolt.diy specifically for DeepSeekcoder API keys? I have seen many bloggers on YouTube using API keys, and they are running normally without calling the local DeepSeek r1. It is also possible to use the ollama method locally

See: https://www.youtube.com/watch?v=OCEzH9qHPmU