Remix App Server Template: Error: couldn't find exported server build
& WebSocket server error: Port is already in use
#20
Labels
Describe the bug
After creating a fresh app using the
Remix App Server
template and running the following command inside the roof of my newly created remix app:I get the following error:
Then after quitting the process and trying to restart I get this web socket error message:
Video Reproduction
npx remix-kit@latest install
thenremix-kit preview
per the Status section on the readme which talkes about usingremix-kit preview
for remix apps that are using the Remix App Server01-remix-app-server---premix-kit-preview.mp4
Console output w/errors
02-remix-app-server---vite-dev.mp4
Steps to reproduce
1.Install a fresh remix app & choose
Remix App Server
cd
into the newly created remix app & setup and run remix-kit using the following commandsctrl + c
), runnpm run build
npm run vite:dev
and you get the following error:Recommendations
Ideally, when you kill the process that starts from
npm run vite:dev
, the websocket server should be terminated to avoid hitting this web socket error on subsequent attempts to restart the serverIf we do encounter the
WebSocket server error: Port is already in use
it would be nice to get printed in the console the port that this web socket server is running on so we could kill it as wellIn the readme, when looking at these instructions, there is no way to tell if this command is for apps using
Remix App Template
or apps that have their own `server.{js,mjs} files (express template)To avoid confusion, we could simply link to this below the Setup section:
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: