https://cal.com logo
Join Slack
Powered by
# developers
  • k

    KapilDev Neupane

    03/07/2022, 12:11 AM
    Hi guys! I am new here. Don't know if this is the right channel but I am having issues running the Cal source code locally in my Laptop. My PC is Windows 11, Node Version is v14.19.0. I have latest version Docker installed. When running
    yarn
    I get the following error:
    Copy code
    warning Workspaces can only be enabled in private projects.
    warning Workspaces can only be enabled in private projects.
    [5/5] Building fresh packages...
    [-/14] ⠄ waiting...
    [-/14] ⠄ waiting...
    [14/14] ⡀ @calcom/prisma
    [-/14] ⡀ waiting...
    error C:\Users\Kapildev\VSCodeProjects\<http://cal.com|cal.com>\node_modules\@calcom\prisma: Command failed.
    Exit code: 1
    Command: yarn generate-schemas
    Arguments:
    Directory: C:\Users\Kapildev\VSCodeProjects\<http://cal.com|cal.com>\node_modules\@calcom\prisma
    Output:
    yarn run v1.22.17
    $ prisma generate && prisma format
    internal/modules/cjs/loader.js:905
      throw err;
      ^
    
    Error: Cannot find module 'C:\Users\Kapildev\VSCodeProjects\<http://cal.com|cal.com>\node_modules\node_modules\prisma\build\index.js'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
        at Function.Module._load (internal/modules/cjs/loader.js:746:27)
        at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
        at internal/main/run_main_module.js:17:47 {
      code: 'MODULE_NOT_FOUND',
      requireStack: []
    }
    error Command failed with exit code 1.
    When running
    yarn dx
    I get the following error:
    Copy code
    yarn run v1.22.17
    $ turbo run dx
    • Packages in scope: @calcom/config, @calcom/docs, @calcom/lib, @calcom/prisma, @calcom/tsconfig, @calcom/types, @calcom/ui, @calcom/web
    • Running dx in 8 packages
    @calcom/prisma:dx: cache miss, executing a66f0ef6f6e319c4
    @calcom/prisma:dx: $ yarn db-setup
    @calcom/prisma:dx: $ run-s db-up db-deploy db-seed
    @calcom/prisma:dx: $ docker-compose up -d
    @calcom/prisma:dx: Container prisma-postgres-1  Recreate
    @calcom/prisma:dx: Container prisma-postgres-1  Recreated
    @calcom/prisma:dx: Container prisma-postgres_is_ready-1  Recreate
    @calcom/prisma:dx: Container prisma-postgres_is_ready-1  Recreated
    @calcom/prisma:dx: Container prisma-postgres-1  Starting
    @calcom/prisma:dx: Container prisma-postgres-1  Started
    @calcom/prisma:dx: Container prisma-postgres_is_ready-1  Starting
    @calcom/prisma:dx: Container prisma-postgres_is_ready-1  Started
    @calcom/prisma:dx: $ yarn prisma migrate deploy
    @calcom/prisma:dx: $ C:\Users\Kapildev\VSCodeProjects\<http://cal.com|cal.com>\node_modules\.bin\prisma migrate deploy
    @calcom/prisma:dx: Environment variables loaded from .env
    @calcom/prisma:dx: Prisma schema loaded from schema.prisma
    @calcom/prisma:dx: Datasource "db": PostgreSQL database "calendso", schema "public" at "localhost:5450"
    @calcom/prisma:dx:
    @calcom/prisma:dx: 72 migrations found in prisma/migrations
    @calcom/prisma:dx:
    @calcom/prisma:dx:
    @calcom/prisma:dx: No pending migrations to apply.
    @calcom/prisma:dx: $ yarn prisma db seed
    @calcom/prisma:dx: $ C:\Users\Kapildev\VSCodeProjects\<http://cal.com|cal.com>\node_modules\.bin\prisma db seed
    @calcom/prisma:dx: Environment variables loaded from .env
    @calcom/prisma:dx: Running seed command `ts-node ./seed.ts` ...
    @calcom/prisma:dx: 👤 Upserted 'delete-me' with email "<mailto:delete-me@example.com|delete-me@example.com>" & password "delete-me". Booking page 👉 undefined/delete-me
    @calcom/prisma:dx: 👤 Upserted 'onboarding' with email "<mailto:onboarding@example.com|onboarding@example.com>" & password "onboarding". Booking page 👉 undefined/onboarding
    @calcom/prisma:dx: 👤 Upserted 'free-first-hidden' with email "<mailto:free-first-hidden@example.com|free-first-hidden@example.com>" & password "free-first-hidden". Booking page 👉 undefined/free-first-hidden
    @calcom/prisma:dx:      📆 Event type 30min already seems seeded - undefined/free-first-hidden/30min
    @calcom/prisma:dx:      📆 Event type 60min already seems seeded - undefined/free-first-hidden/60min
    @calcom/prisma:dx: 👤 Upserted 'pro' with email "<mailto:pro@example.com|pro@example.com>" & password "pro". Booking page 👉 undefined/pro
    @calcom/prisma:dx:      📆 Event type 30min already seems seeded - undefined/pro/30min
    @calcom/prisma:dx:      📆 Event type 60min already seems seeded - undefined/pro/60min
    @calcom/prisma:dx:      📆 Event type paid already seems seeded - undefined/pro/paid
    @calcom/prisma:dx: 👤 Upserted 'trial' with email "<mailto:trial@example.com|trial@example.com>" & password "trial". Booking page 👉 undefined/trial
    @calcom/prisma:dx:      📆 Event type 30min already seems seeded - undefined/trial/30min
    @calcom/prisma:dx:      📆 Event type 60min already seems seeded - undefined/trial/60min
    @calcom/prisma:dx: 👤 Upserted 'free' with email "<mailto:free@example.com|free@example.com>" & password "free". Booking page 👉 undefined/free
    @calcom/prisma:dx:      📆 Event type 30min already seems seeded - undefined/free/30min
    @calcom/prisma:dx:      📆 Event type 60min already seems seeded - undefined/free/60min
    @calcom/prisma:dx: 👤 Upserted 'usa' with email "<mailto:usa@example.com|usa@example.com>" & password "usa". Booking page 👉 undefined/usa
    @calcom/prisma:dx:      📆 Event type 30min already seems seeded - undefined/usa/30min
    @calcom/prisma:dx: 👤 Upserted 'teamfree' with email "<mailto:teamfree@example.com|teamfree@example.com>" & password "teamfree". Booking page 👉 undefined/teamfree
    @calcom/prisma:dx: 👤 Upserted 'teampro' with email "<mailto:teampro@example.com|teampro@example.com>" & password "teampro". Booking page 👉 undefined/teampro
    @calcom/prisma:dx: Team 'Seeded Team' already exists, skipping.
    @calcom/prisma:dx:
    @calcom/prisma:dx: The seed command has been executed.
    @calcom/web:dx: cache miss, executing a89e0cd2750bcf8c
    @calcom/web:dx: $ next dev
    @calcom/web:dx: Error: listen EACCES: permission denied 0.0.0.0:3000
    @calcom/web:dx:     at Server.setupListenHandle [as _listen2] (net.js:1314:21)
    @calcom/web:dx:     at listenInCluster (net.js:1379:12)
    @calcom/web:dx:     at Server.listen (net.js:1465:7)
    @calcom/web:dx:     at C:\Users\Kapildev\VSCodeProjects\<http://cal.com|cal.com>\node_modules\next\dist\server\lib\start-server.js:45:16
    @calcom/web:dx:     at new Promise (<anonymous>)
    @calcom/web:dx:     at Object.startServer (C:\Users\Kapildev\VSCodeProjects\<http://cal.com|cal.com>\node_modules\next\dist\server\lib\start-server.js:19:12)
    @calcom/web:dx:     at nextDev (C:\Users\Kapildev\VSCodeProjects\<http://cal.com|cal.com>\node_modules\next\dist\cli\next-dev.js:116:23)
    @calcom/web:dx:     at C:\Users\Kapildev\VSCodeProjects\<http://cal.com|cal.com>\node_modules\next\dist\bin\next:130:34 {
    @calcom/web:dx:   code: 'EACCES',
    @calcom/web:dx:   errno: -4092,
    @calcom/web:dx:   syscall: 'listen',
    @calcom/web:dx:   address: '0.0.0.0',
    @calcom/web:dx:   port: 3000
    @calcom/web:dx: }
    @calcom/web:dx: error Command failed with exit code 1.
    @calcom/web:dx: info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
    @calcom/web:dx: Error: command finished with error: exit status 1
    error Command failed with exit code 1.
    info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
    If you think the port is already in use in Host machine from above message, then the answer is no. I checked it with the following command:
    netstat -ano | findstr :3000
    I am currently stuck and could not think of a single way to solve this. What can I do?
    z
    a
    +2
    • 5
    • 9
  • e

    Eeshaan Pirani

    03/12/2022, 2:22 AM
    build error on latest push:
    Copy code
    @calcom/web:build: Error: next-transpile-modules - an unexpected error happened when trying to resolve "@calcom/ee". Are you sure the name of the module you are trying to transpile is correct, and it has a package.json with a "main" or an "exports" field?
    @calcom/web:build: Error: Can't resolve '@calcom/ee/package.json' in '/root/cal.eauw.org/cal.com/apps/web'
    p
    z
    • 3
    • 5
  • e

    Eeshaan Pirani

    03/12/2022, 2:25 AM
    related: https://github.com/calcom/cal.com/pull/2063/files
    • 1
    • 1
  • h

    Hussam Khatib

    03/12/2022, 10:08 AM
    Is the landing page of cal.com has sepeate code base than that of https://github.com/calcom/cal.com
    p
    • 2
    • 2
  • k

    Kshitij

    03/17/2022, 3:54 AM
    Is there a restriction on using
    calendar
    as the username? The reason I want to do it is because I am connecting it to my personal website and there is no point mentioning a username in the slug.
    a
    • 2
    • 2
  • d

    Demian N

    03/22/2022, 8:17 AM
    I've submitted a PR that I believe will increase the bootstrap time, and probably the first load time for some of the app pages. At least this was my first experience using it. You might wanna tell me if you note some difference as well. What is for sure is that the production build will be reduced in about a 60% with a very small change in the code base. https://github.com/calcom/cal.com/pull/2237
    🙏 1
    z
    • 2
    • 1
  • v

    Vatsal Aggarwal

    03/23/2022, 11:05 PM
    Hey, playing with a local deployment of cal.com (with database on supabase). Based in London, and supabase db is based in London as well. When I look at scheduling for individuals, everything works fine. When I use the same individual but create a collective scheduling link I get the error below. When I run in
    yarn dev
    there is no error that pops up on the console.
    p
    a
    • 3
    • 10
  • j

    jeho Ntanda

    03/24/2022, 1:56 PM
    hello here
  • j

    jeho Ntanda

    03/24/2022, 1:58 PM
    i am trying use calendso in dev mode to see if i can more fucntionality , i am using react-draft-WYSIWYG to come up with a rich text editor, which i have achieved. now to it i would like to add some functionalities like below: while a user enters text, i want to enable them enter a dynamic variable that will change in the final text. (assuming this entered text will be an email reminder sent to several recipients,) i want it that a user can enter a variable like @name and this will be translated into the name of the recipient receiving that email. I am getting this idea from a site called https://calendly.com/, where those guys made it posible. below is how thier page looks like (user interface)
  • j

    jeho Ntanda

    03/24/2022, 2:01 PM
    message has been deleted
  • j

    jeho Ntanda

    03/24/2022, 2:01 PM
    the grayed parts are the dynamic entries which are translated into actual customer data, during the email sending
  • j

    jeho Ntanda

    03/24/2022, 2:02 PM
    below is the page code
  • j

    jeho Ntanda

    03/24/2022, 2:02 PM
    message has been deleted
  • j

    jeho Ntanda

    03/24/2022, 2:03 PM
    the blue highlight is one of the dynamic entries. I would like to understand what the "data-variable" paramenter in the parent span meant, also i'd love to understand what the values "&#xFEFF;" that enclose the child span mean
  • p

    Peer

    03/24/2022, 2:04 PM
    you need to ask the makers of react-draft-WYSIWYG
  • p

    Peer

    03/24/2022, 2:04 PM
    this was not written by us
  • j

    jeho Ntanda

    03/24/2022, 2:07 PM
    the problem is neither cal.com's or the makers of react-draft-wysiwyg, its with me understanding and interpreting the code, i already know how to manipulate react-wysiwyg
  • j

    jeho Ntanda

    03/24/2022, 2:08 PM
    also I just want to do something that calendly did, and implement it in cal.com
  • p

    Peer

    03/24/2022, 2:11 PM
    i dont think anyone knows the answer here
  • p

    Peer

    03/24/2022, 2:11 PM
    we would need more context
  • p

    Peer

    03/24/2022, 2:12 PM
    maybe its worth opening a PR
  • p

    Peer

    03/24/2022, 2:12 PM
    and discuss there
  • j

    jeho Ntanda

    03/24/2022, 2:13 PM
    Oh !😥
  • j

    jeho Ntanda

    03/24/2022, 2:13 PM
    let me try
  • a

    Alex Dowbor

    03/24/2022, 2:52 PM
    Hey everyone, we are using the infrastructure version and wondering if there is already a way to pass additional metadata at the time of booking that would be included in the webhook payloads. More context: During the booking process we want to capture information that we pass onto the URL such us unique identifiers that tie that booking to our backend systems. In our case we don’t want to make these fields visible nor editable by the user in the same way that “additional inputs” are. Many thanks, Alex
    p
    a
    • 3
    • 19
  • l

    Lazaro

    03/26/2022, 4:49 PM
    Hi team – Great work on the cal.com platform! It seems that there is an issue/bug on the UI. When I click on –say– Tue 12th April, the square of Mon 11th is selected. I’m on the latest version of Chrome on a Mac
    a
    • 2
    • 3
  • l

    Lazaro

    03/26/2022, 4:59 PM
    https://app.birdeatsbug.com/sessions/DORQTFFrs2m93l--kJPzhCQ5_gvXmR3CwCizn5-UFj4c
  • p

    Peer

    03/26/2022, 5:59 PM
    @Emrysal can take a look, thank you!
  • l

    Lazaro

    03/27/2022, 5:28 PM
    Hi Team – It seems that the previous issue has been fixed, however when I choose –say– Monday on my calendar, it displays ‘Sunday’ although with the correct date. See the screencast below: https://app.birdeatsbug.com/sessions/lqzk9Td4RmJOjnDhpZam_jomBO037l0ll_3he23m1dbp
    a
    p
    s
    • 4
    • 12
  • l

    Luke Harries

    03/28/2022, 8:25 PM
    Hi everyone, I'm trying to embed Cal.com in an iframe. It works on Chrome but doesn't work on Safari - any suggestions on how to get it working?
12345...22Latest