#My dev server loops

1 messages · Page 1 of 1 (latest)

stuck cove
#

My dev server keeps looping and then breaks the server. Idk whats happening but i always have to restart my laptop before it fixes the issue but when i stop the server and start it again. it starts looping. any help please

deft pebble
#

Looks like a Nextjs issue?

stuck cove
stuck cove
deft pebble
#

Remix doesn't have hmr.

stuck cove
#

yeah, it's confusing because it's been having almost everytime

#

how do you think i can solve this?

#

any possible solutions

deft pebble
#

That's an error I would expect if I'm working a next repo atm. I wonder if it's one of those weird bugs caused by permanent redirect cached by the browser.

stuck cove
#

mmm, i will probably need to clear my browser cache to see if it works

deft pebble
#

Try opening on another browser or incognito?

#

delete localhost cookies too.

stuck cove
#

alright thanks

opaque cedar
stuck cove
#

nope, brave browser

tropic geyser
#

useState with <LiveReload /> causes this issue for me

#

Can u try removing live reload and inspect for similar behavior?

stuck cove
#

okay, i will try that

#

sorry for the late response

gilded swallow
#

I am facing the same issue, did removing LiveReload help you @stuck cove ?

stuck cove
#

yeah i figured out the issue. the issue is when i run Remix and Nextjs projects on the same port. i changed the nextjs port to 3001 and remix port stayed on 3000

#

remix always run the cache from nextjs always when using the same port

gilded swallow
#

Okay i see. Thanks for the input, it seems I am also running both projects in same port at different times because of which remix is taking cache from nextjs and causing loop.