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 8505It works fine locally, but in the pipeline I get errors like this:
node:internal/process/promises:288triggerUncaughtException(err, true /* fromPromise */);
RpcIpcMessagePortClosedError: Cannot send the message
- the message port has been closed for the process 1149.
at /opt/atlassian/pipelines/agent/build/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:47:47
at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
code: undefined,
signal: undefined
}
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!
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.