:wave: Need help, attempting to build `apps/api` ...
# api
k
👋 Need help, attempting to build
apps/api
is giving me this errror.
yarn turbo run build --scope=@calcom/api --include-dependencies --no-deps
I tried the instructions in the https://github.com/calcom/api/tree/a8e8acd053e0de1da9ad623c3664a837950d6a06 Its possible to fix it by change this line https://github.com/calcom/cal.com/blob/ec07f84d1e9e99cd1a3415b2db9539fadd4973a1/apps/web/ee/pages/api/cron/workflows/scheduleSMSReminders.ts#L8 to include
@calcom/ee
, but I want to be sure I am doing it right.
Copy code
@calcom/api:build: ../web/ee/lib/workflows/reminders/smsReminderManager.ts:11:25
@calcom/api:build: Type error: Cannot find module '@ee/lib/workflows/reminders/smsProviders/twilioProvider' or its corresponding type declarations.
@calcom/api:build: 
@calcom/api:build:    9 | import dayjs from "@calcom/dayjs";
@calcom/api:build:   10 | import prisma from "@calcom/prisma";
@calcom/api:build: > 11 | import * as twilio from "@ee/lib/workflows/reminders/smsProviders/twilioProvider";
@calcom/api:build:      |                         ^
@calcom/api:build:   12 | import smsReminderTemplate from "@ee/lib/workflows/reminders/templates/smsReminderTemplate";
@calcom/api:build:   13 | 
@calcom/api:build:   14 | export enum timeUnitLowerCase {
@calcom/api:build: 
@calcom/api:build: > Build error occurred
@calcom/api:build: Error: Call retries were exceeded
@calcom/api:build:     at ChildProcessWorker.initialize (/Users/kraj/tbd_work_area/tbd_git_area/cal_com_sandbox_hosting/cal_com_v3/cal.com/node_modules/next/dist/compiled/jest-worker/index.js:1:11661)
@calcom/api:build:     at ChildProcessWorker._onExit (/Users/kraj/tbd_work_area/tbd_git_area/cal_com_sandbox_hosting/cal_com_v3/cal.com/node_modules/next/dist/compiled/jest-worker/index.js:1:12599)
@calcom/api:build:     at ChildProcess.emit (node:events:527:28)
@calcom/api:build:     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
@calcom/api:build:   type: 'WorkerError'
@calcom/api:build: }
h
cc @Agusti @Carina Wollendorfer
@Krishna Raj Can you check if this branch works for you https://github.com/calcom/cal.com/pull/3446
k
Ok, checking
@Hariom Balhara whoa! Worked. Thanks for fixing this. 👍
So, I am currently checking out v1.8.0 release tag for going prod. How do I go with this fix ? Cherry pick ur commit ? I dont want to use main branch.
h
Yeah for now you can do that. It would land pretty soon in tagged release after review
🙏 1
k
Ok, thank you