Skip to content

No longer compiling after the last update #1507

Description

@habdaldaim

What Happened?

When running docker compose up for deployment the following error occurs:

10.38 @opendatacapture/api:build: > @opendatacapture/api@0.0.0 build /app/apps/api
10.38 @opendatacapture/api:build: > rm -rf dist && NODE_ENV=production libnest build -c libnest.config.ts
10.38 @opendatacapture/api:build:
11.03 @opendatacapture/api:build: ZodError: [
11.03 @opendatacapture/api:build: {
11.03 @opendatacapture/api:build: "expected": "string",
11.03 @opendatacapture/api:build: "code": "invalid_type",
11.03 @opendatacapture/api:build: "path": [
11.03 @opendatacapture/api:build: "version"
11.03 @opendatacapture/api:build: ],
11.03 @opendatacapture/api:build: "message": "Invalid input: expected string, received undefined"
11.03 @opendatacapture/api:build: }
11.03 @opendatacapture/api:build: ]
11.03 @opendatacapture/api:build: at getReleaseInfo (file:///app/packages/release-info/src/index.ts:35:43)
11.03 @opendatacapture/api:build: at file:///app/apps/api/libnest.config.ts:22:28
11.03 @opendatacapture/api:build:
11.03 @opendatacapture/api:build: The above exception was the cause of the following exception:
11.03 @opendatacapture/api:build:
11.03 @opendatacapture/api:build: RuntimeException: Failed to import module: /app/apps/api/libnest.config.ts
11.03 @opendatacapture/api:build: at file:///app/node_modules/.pnpm/@DouglasNeuroInformatics+libnest@8.4.1_@nestjs+common@11.1.24_reflect-metadata@0.1.14_r_f341a0e51b3c960e4f200e9fd45af854/node_modules/@douglasneuroinformatics/libnest/dist/meta/import.js:8:66
11.03 @opendatacapture/api:build: at /app/node_modules/.pnpm/neverthrow@8.2.0/node_modules/neverthrow/dist/index.cjs.js:117:46
11.03 @opendatacapture/api:build: at Generator.throw ()
11.03 @opendatacapture/api:build: at rejected (/app/node_modules/.pnpm/neverthrow@8.2.0/node_modules/neverthrow/dist/index.cjs.js:41:65)
11.04 @opendatacapture/api:build:  ELIFECYCLE  Command failed with exit code 1.
11.07 ERROR @opendatacapture/api#build: command (/app/apps/api) /usr/local/bin/pnpm run build exited (1)
11.07
11.07 Tasks: 4 successful, 5 total
11.07 Cached: 0 cached, 5 total
11.07 Time: 10.747s
[+] up 0/3ed: @opendatacapture/api#build
⠴ Image ghcr.io/douglasneuroinformatics/open-data-capture-web:latest Building 14.7s
⠼ Image ghcr.io/douglasneuroinformatics/open-data-capture-api:latest Building 14.7s
⠴ Image ghcr.io/douglasneuroinformatics/open-data-capture-gateway:latest Building 14.7s
Dockerfile:23

What Did You Expect?

Expected behavior is to compile and load the webpage

Operating System

Ubuntu Server 24.04

Browser (if applicable)

No response

Steps to Reproduce

  1. git clone https://github.com/DouglasNeuroInformatics/OpenDataCapture.git
  2. cd OpenDataCapture
  3. ./scripts/generate-env.sh
  4. docker compose up -d

Anything Else?

When trying development deployment

@opendatacapture/runtime-core:build: api-extractor 7.47.6 - https://api-extractor.com/
@opendatacapture/runtime-core:build:
@opendatacapture/runtime-core:build: Analysis will use the bundled TypeScript version 6.0.3
@opendatacapture/runtime-core:build:
@opendatacapture/runtime-core:build: ERROR: Internal Error: getResolvedModule() could not resolve module name "./define.js"
@opendatacapture/runtime-core:build: /home/username/OpenDataCapture/packages/runtime-core/lib/index.d.ts:1:1
@opendatacapture/runtime-core:build:
@opendatacapture/runtime-core:build: You have encountered a software defect. Please consider reporting the issue to the maintainers of this application.
@opendatacapture/runtime-core:build:  ELIFECYCLE  Command failed with exit code 1.
@opendatacapture/runtime-core:build:  ELIFECYCLE  Command failed with exit code 1.
ERROR @opendatacapture/runtime-core#build: command (/home/haider/OpenDataCapture/packages/runtime-core) /home/username/.nvm/versions/node/v24.19.0/bin/pnpm run build exited (1)

Tasks: 3 successful, 4 total
Cached: 0 cached, 4 total
Time: 3.225s
Failed: @opendatacapture/runtime-core#build

ERROR run failed: command exited (1)
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions