App crashing in Preview mode (Dev) but works fine in Production

Hi everyone,
I’m facing an issue where my app crashes in Preview mode in the dev environment, but the same build runs fine in production.

  • Preview mode crashes immediately / on load

  • Production deployment works without any issues

  • Environment variables and configs seem correct

Has anyone faced something similar on Replit?
Any ideas on what could cause Preview mode to behave differently from production?

Thanks in advance!

2 Likes

Yes I have the same problem and have emailed Replit with the details. Hope they find a solution soon. (Just hope they can refund the part where I tried to use the agent to debug)

The same issue here Each of my apps is crashing 30 seconds after opening - #12

1 Like

please let me know, if they come up with any solution or reply ton your email

Came here to say the same. My agent ran for an hour and came back with nothing helpful. @soullennon41 , I hope so too.

I didn’t actually try any of the other apps. I just went and tested one other app, and the same happened.

Glad (in a way) that this is more of a community issue than just my apps.

1 Like

this is horrible, the preview dies after a couple of minutes without any console error, however in my case only applies to fastapi builds, while running the same build in bash, the server is running smoothly in the bg, so basically the only affected component is the preview. i was thinking that i overcomuputed the ide limit, but even a 15 lines minimal pseudocode dies in preview. anybody has the same experience?

@FranciscoCM

Create a ticket and start a work order friends!

If using the app or desktop version stop - Use the web browser.

If loading preview in replits preview mode - stop. Open in another tab/ window.

Lots of changes occurred on a systems level.

Hope it helps!

Hello everyone :waving_hand:

Apologize that you are dealing with some issues here but am happy to update that this has been resolved. As @RocketMan mentioned if you are still having issues please create a support ticket and feel free to share the # in this thread.

1 Like

Estou enfrentando o mesmo problema. Após utilizar mais de 100 prompts durante vários dias o agente chegou a conclusão que não consegue resolver: “Ok, não posso editar .replit e o workflow fica parando. Vou investigar de forma diferente — por que o workflow continua parando sozinho, e se o Vite está compilando sem erros. O problema está na configuração de infraestrutura do Replit. Seu arquivo .replit (que eu NÃO posso editar, o sistema bloqueia) tem uma entrada localPort = 80 como primeira porta“.

Apesar de ter encaminhado email para o suporte, ainda não recebi o retorno referente a solicitação abaixo: Meu projeto tem o preview do workspace preso em “carregando” há mais de uma semana. Meus outros 2 projetos funcionam normalmente.

O problema identificado: meu arquivo .replit tem uma entrada localPort = 80, externalPort = 80 como primeira porta, mas o servidor roda na porta 5000 (waitForPort = 5000). O Replit está tentando rotear o webview para porta 80 em vez de 5000. O Agent não consegue corrigir isso porque editar .replit é bloqueado pelo sistema.

ID do Repl: 3629898b-c5af-4a1f-a9fb-dec6ee28e970

Solicitação: remover a entrada localPort = 80, externalPort = 80 do meu .replit, deixando apenas localPort = 5000, externalPort = 5000.

O suporte me deu retorno e solicitou que removesse manualmente a porta 80. Segui os passos informado pelo suporte e deu certo!