I have a react app, which has been build using micro frontends. I am trying to run cypress tests as part of a bitbucket pipeline, but I can't get my app to run within the pipeline. To start the app I use lerna, which in turn starts each micro frontend using webpack, on a different port. So basically runs the command below but with different ports
webpack serve --port 8505
It works fine locally, but in the pipeline I get errors like this:
triggerUncaughtException(err, true /* fromPromise */);<br><br><br><span>RpcIpcMessagePortClosedError: Cannot send the message <br>- the message port has been closed for the process 1149.</span><br><br><span>at /opt/atlassian/pipelines/agent/build/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:47:47</span><br><span>at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {</span><br><span>code: undefined,</span><br><span>signal: undefined</span><br>}<br><br><span>node:internal/process/promises:288<br></span>
I wonder if there is something I need to know about using `webpack serve` within the pipeline environment? My pipeline which builds and deploys using webpack works fine, so it must be something specific to serve? Thanks!