Static worker unexpectedly exited with code: 1 and signal: null

Ever since i started using serversidehelpers with trpc:


export const getServerSideProps = async (
  context: GetServerSidePropsContext,
) => {
  const helpers = await createHelpers(context);
  await helpers.beneficiaries.listPublic.prefetch({});
  await helpers.types.list.prefetch({ withChoices: true });
  return {
    props: {
      trpcState: helpers.dehydrate(),
    },
  };
};


helpers:

export const createHelpers = async (context: GetServerSidePropsContext) => {
  return createServerSideHelpers({
    router: appRouter,
    ctx: await createContext({
      req: context.req as NextApiRequest,
      res: context.res as NextApiResponse,
    }),
    transformer: superjson,
  });
};


i get this jest-worker error on next build on github CI workflow:

Build error occurred
Error: Call retries were exceeded
    at ChildProcessWorker.initialize (/home/runner/work/dirma/dirma/node_modules/next/dist/compiled/jest-worker/index.js:1:11661)
    at ChildProcessWorker._onExit (/home/runner/work/dirma/dirma/node_modules/next/dist/compiled/jest-worker/index.js:1:12599)
    at ChildProcess.emit (node:events:514:28)
    at ChildProcess.emit (node:domain:488:12)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12) {
  type: 'WorkerError'
}



The build works perfetcly both locally and in netlify, i dont know why it would't work, anyone got any ideas?
Was this page helpful?