#build error results in a blank deployed page

3 messages · Page 1 of 1 (latest)

unique wedge
#

After running npm run build I get a build error

[vite] WebSocket server error: Port is already in use
Re optimizing dependencies because vite config has changed
7 modules transfored
dist/astro/hoiseted.caymmy3q.js
[build] rearranging server assets...
[<@&1055234544183287879>/netlify] emitted _redirects
[<@&1055234544183287879>/netlify] Generated SSR Function
[build] server built in 4.80s
[build] complete

The current failed build ran on astro v4.8.5
The previously successful build was on astro v4.8.2, with no errors.
Reverting back to astro v4.8.2 results in the same websocket error.

jaunty vigilBOT
#

Hi @unique wedge. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the knowledge sources provided, there isn't specific information about the WebSocket server error you're encountering or how to resolve it. However, the error message "Port is already in use" typically indicates that another process is already running on the port that Astro is trying to use for its WebSocket server.

You might want to check if there are any other processes running on the same port and terminate them, or you could try changing the port that Astro uses.

If you're still encountering issues, it might be helpful to check Astro’s issues on GitHub (https://github.com/withastro/astro/issues/) for any reported issues similar to yours, or to file an issue yourself. You can also refer to the Astro documentation (https://docs.astro.build/) for more information and guidance.

Please note that this advice is general in nature, and the exact solution might differ based on your specific situation and environment.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: