Skip to content

pnpm nx run @docmost/editor-ext:build fails with: Cannot find module 'client/src/lib/types' #86

Closed

Description

@olivierIllogika

Following development setup and running into this issue. Working on M1 with Monterey and nvm with node 20.12.2.

Modifying packages/editor-ext/tsconfig.json seems to fix it and it makes sense to me, but it feels like I shouldn't be the only one with this issue and I might be missing some obvious config setting 🤔

-    "baseUrl": "./",
+    "baseUrl": "../../apps/",
pnpm nx run @docmost/editor-ext:build log
pnpm nx run @docmost/editor-ext:build

> nx run @docmost/editor-ext:build


> @docmost/editor-ext@ build /Users/omartin/development/docmost/packages/editor-ext
> tsc --build

src/lib/image/image-upload.ts:3:29 - error TS2307: Cannot find module 'client/src/lib/types' or its corresponding type declarations.

3 import { IAttachment } from "client/src/lib/types";
                              ~~~~~~~~~~~~~~~~~~~~~~

src/lib/video/video-upload.ts:3:29 - error TS2307: Cannot find module 'client/src/lib/types' or its corresponding type declarations.

3 import { IAttachment } from "client/src/lib/types";
                              ~~~~~~~~~~~~~~~~~~~~~~


Found 2 errors.

 ELIFECYCLE  Command failed with exit code 1.
 WARN   Local package.json exists, but node_modules missing, did you mean to install?

——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 NX   Ran target build for project @docmost/editor-ext (1s)

   ✖  1/1 failed
   ✔  0/1 succeeded [0 read from cache]


Activity

  1. Philipinho commented on Jul 20, 2024

    @Philipinho
    Member

    On M1 myself, I tried it on Node 20.12.2 with no issues.
    It's quite strange how the mono-repo behaves differently on different systems.

    I should give more attention to it.

  2. olivierIllogika commented on Jul 20, 2024

    @olivierIllogika
    ContributorAuthor

    It's quite strange how the mono-repo behaves differently on different systems.

    Got me thinking was could be different and the only thing might be the pnpm version installed.

    I have 8.6.5 ; what's yours?

  3. Philipinho commented on Jul 20, 2024

    @Philipinho
    Member

    My pnpm version is 9.5.0.

  4. added a commit that references this issue on Jul 22, 2024
    d2ecd28
  5. added a commit that references this issue on Aug 20, 2025
    298aa99
  6. added a commit that references this issue on Dec 17, 2025
    1d7c5ac
  7. added a commit that references this issue on Dec 24, 2025
  8. added a commit that references this issue on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions