Open Mat-moran opened 1 year ago
Hi, I am trying to configure MSW in a Remix app and I am stuck with the serve executor command.
This is how they launch MSW in the Indie Stack Remix template.
"dev": "remix dev -c \"npm run dev:serve\"", "dev:serve": "binode --require ./mocks -- @remix-run/serve:remix-serve ./build",
In order to do that with the @nx/remix serve executor is necessary to pass the -command flag wich I am doing in this way.
@nx/remix
"serve": { "executor": "@nx/remix:serve", "options": { "port": 4200, "command": "pnpm run \"binode --require ./app/tests/mocks -- @remix-run/serve:remix-serve ./build\"" } },
but it is giving me the next error
ERR_PNPM_NO_SCRIPT Missing script: "binode Command ""binode" not found. node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */); ^ Error: connect ECONNREFUSED 127.0.0.1:4200 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) { errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 4200 } Node.js v18.12.1
Also this is maybe related with #331 because in order to use -c flag in the remix cli, the v2_dev flag in remix.config should be true.
-c
v2_dev
true
Any one can help on this? :pray: Thanks
@Mat-moran does it fail at the run? I have the same error after some time after a successful run https://github.com/nrwl/nx/issues/22547
Hi, I am trying to configure MSW in a Remix app and I am stuck with the serve executor command.
This is how they launch MSW in the Indie Stack Remix template.
In order to do that with the
@nx/remix
serve executor is necessary to pass the -command flag wich I am doing in this way.but it is giving me the next error
Also this is maybe related with #331 because in order to use
-c
flag in the remix cli, thev2_dev
flag in remix.config should betrue
.Any one can help on this? :pray: Thanks