You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
npx remix-kit@latest install
I get the following error:
Error: couldn't find exported server build from ../my-remix-app/build/index.js
Then after quitting the process and trying to restart I get this web socket error message:
ERROR WebSocket server error: Port is already in use
Video Reproduction
Installed fresh remix app server template, ran npx remix-kit@latest install then remix-kit preview per the Status section on the readme which talkes about using remix-kit preview for remix apps that are using the Remix App Server
ERROR Cannot find module '/Users/cliffordfajardo/repos/remix_kit_repro1/remix-kit-playgrounds/my-remix-app/build/index.js' imported from /Users/cliffordfajardo/repos/remix_kit_repro1/remix-kit-playgrounds/my-remix-app/node_modules/@remix-kit/vite/dist/vite.cjs
at new NodeError (node:internal/errors:393:5)
at finalizeResolution (node:internal/modules/esm/resolve:323:11)
at moduleResolve (node:internal/modules/esm/resolve:916:10)
at defaultResolve (node:internal/modules/esm/resolve:1124:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ESMLoader.import (node:internal/modules/esm/loader:525:22)
at importModuleDynamically (node:internal/modules/cjs/loader:1098:29)
at importModuleDynamicallyWrapper (node:internal/vm/module:438:21)
Following the first instructions at the top of the README
> cd ./your-remix-app
> npx remix-kit@latest install
> npm run vite:dev
02-remix-app-server---vite-dev.mp4
Steps to reproduce
1.Install a fresh remix app & choose Remix App Server
$ npx create-remix@latest
? Where would you like to create your app? ./my-remix-app
? What type of app do you want to create? Just the basics
? Where do you want to deploy? Choose Remix App Server if you're unsure; it's
easy to change deployment targets. Remix App Server
cd into the newly created remix app & setup and run remix-kit using the following commands
$ cd my-remix-app
$ npx remix-kit@latest install
$ npm run vite:dev
Remix 1.9.0
React 18.2.0
> Local: http://localhost:3005/
> Network: http://192.168.1.65:3005/
# ----------- visit the URL http://localhost:3005/
Error: couldn't find exported server build from ../my-remix-app/build/index.js
Kill the process (ctrl + c), run npm run build
Attempt to restart server npm run vite:dev and you get the following error:
WebSocket server error: Port is already in use
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 server
If 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 well
In 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:
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a RemixKit issue and not a Remix specific issue. For example, if it's a Remix related bug, it should likely be reported to remix instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Describe the bug
After creating a fresh app using the
Remix App Servertemplate 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 installthenremix-kit previewper the Status section on the readme which talkes about usingremix-kit previewfor 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 Servercdinto the newly created remix app & setup and run remix-kit using the following commandsctrl + c), runnpm run buildnpm run vite:devand 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 useit 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 Templateor 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
System: OS: macOS 13.0.1 CPU: (10) arm64 Apple M1 Pro Memory: 194.47 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.12.0 - ~/.volta/tools/image/node/18.12.0/bin/node Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn npm: 8.19.2 - ~/.volta/tools/image/node/18.12.0/bin/npm Browsers: Chrome: 108.0.5359.124 Safari: 16.1 npmPackages: @remix-kit/react: ^0.2.1 => 0.2.1 @remix-kit/vite: ^0.2.1 => 0.2.1 @remix-run/dev: ^1.9.0 => 1.9.0 @remix-run/eslint-config: ^1.9.0 => 1.9.0 @remix-run/node: ^1.9.0 => 1.9.0 @remix-run/react: ^1.9.0 => 1.9.0 @remix-run/serve: ^1.9.0 => 1.9.0Used Package Manager
npm
Validations