Skip to content

Instantly share code, notes, and snippets.

@fforbeck
Created February 20, 2025 18:48
Show Gist options
  • Save fforbeck/9d74f127f5ddbbe1b5a29131a95fe62a to your computer and use it in GitHub Desktop.
Save fforbeck/9d74f127f5ddbbe1b5a29131a95fe62a to your computer and use it in GitHub Desktop.
error-while-building-nx-projects.md

❯ upload-service (import-w3ui) ✘ pnpm nx run-many -t build view-logs zsh: correct 'nx' to '.nx' [nyae]? n

✔ nx run @storacha/capabilities:build [local cache] ✔ nx run @storacha/did-mailto:build [local cache] ✔ nx run @w3ui/core:build [existing outputs match the cache, left as is] ✔ nx run @storacha/filecoin-client:build [local cache] ✔ nx run @storacha/blob-index:build [local cache] ✔ nx run @w3ui/react:build [existing outputs match the cache, left as is] ✔ nx run @storacha/access:build [local cache] ✔ nx run @w3ui/example-react-components:build [local cache] ✔ nx run @w3ui/example-react-uploads-list:build [local cache] ✔ nx run @w3ui/example-react-sign-up-in:build [local cache] ✔ nx run @w3ui/example-react-multi-file-upload:build [local cache] ✔ nx run @w3ui/example-react-file-upload:build [local cache]

—————————————————————————————————————————————————————————————————————————————————————————————————————————————— ✖ nx run @storacha/filecoin-api:build > @storacha/[email protected] build /home/fforbeck/Development/storacha/upload-service/packages/filecoin-api > tsc --build

  src/types.ts(15,34): error TS2307: Cannot find module '@storacha/filecoin-client/types' or its corresponding type declarations.
  src/types.ts(19,15): error TS2307: Cannot find module '@storacha/filecoin-client/types' or its corresponding type declarations.
  src/storefront/api.ts(18,8): error TS2307: Cannot find module '@storacha/filecoin-client/types' or its corresponding type declarations.
  src/storefront/service.js(6,29): error TS2307: Cannot find module '@storacha/filecoin-client' or its corresponding type declarations.
  src/storefront/service.js(386,54): error TS2694: Namespace '"/home/fforbeck/Development/storacha/upload-service/packages/filecoin-api/src/types"' has no exported member 'StorefrontService'.
  src/storefront/events.js(1,40): error TS2307: Cannot find module '@storacha/filecoin-client' or its corresponding type declarations.
  src/aggregator/api.ts(7,8): error TS2307: Cannot find module '@storacha/filecoin-client/types' or its corresponding type declarations.
  src/dealer/api.ts(6,8): error TS2307: Cannot find module '@storacha/filecoin-client/types' or its corresponding type declarations.
  src/dealer/service.js(8,29): error TS2307: Cannot find module '@storacha/filecoin-client' or its corresponding type declarations.
  src/dealer/service.js(207,54): error TS2694: Namespace '"/home/fforbeck/Development/storacha/upload-service/packages/filecoin-api/src/types"' has no exported member 'DealerService'.
  src/dealer/events.js(1,37): error TS2307: Cannot find module '@storacha/filecoin-client' or its corresponding type declarations.
  src/dealer/events.js(123,19): error TS2307: Cannot find module '@storacha/filecoin-client/types' or its corresponding type declarations.
  src/aggregator/events.js(1,36): error TS2307: Cannot find module '@storacha/filecoin-client' or its corresponding type declarations.
  test/events/aggregator.js(1230,5): error TS2578: Unused '@ts-expect-error' directive.
  test/events/aggregator.js(1234,9): error TS2578: Unused '@ts-expect-error' directive.
  test/events/aggregator.js(1240,7): error TS2578: Unused '@ts-expect-error' directive.
  test/events/aggregator.js(1361,5): error TS2578: Unused '@ts-expect-error' directive.
  test/events/aggregator.js(1365,9): error TS2578: Unused '@ts-expect-error' directive.
  test/events/aggregator.js(1371,9): error TS2578: Unused '@ts-expect-error' directive.
  test/events/dealer.js(143,5): error TS2578: Unused '@ts-expect-error' directive.
  test/events/dealer.js(146,7): error TS2578: Unused '@ts-expect-error' directive.
  test/events/dealer.js(152,7): error TS2578: Unused '@ts-expect-error' directive.
  test/events/storefront.js(152,5): error TS2578: Unused '@ts-expect-error' directive.
  test/events/storefront.js(155,7): error TS2578: Unused '@ts-expect-error' directive.
  test/events/storefront.js(160,7): error TS2578: Unused '@ts-expect-error' directive.
  test/events/storefront.js(243,5): error TS2578: Unused '@ts-expect-error' directive.
  test/events/storefront.js(247,9): error TS2578: Unused '@ts-expect-error' directive.
  test/events/storefront.js(253,9): error TS2578: Unused '@ts-expect-error' directive.
  test/events/storefront.js(328,5): error TS2578: Unused '@ts-expect-error' directive.
  test/events/storefront.js(332,9): error TS2578: Unused '@ts-expect-error' directive.
  test/events/storefront.js(338,9): error TS2578: Unused '@ts-expect-error' directive.
   ELIFECYCLE  Command failed with exit code 1.

—————————————————————————————————————————————————————————————————————————————————————————————————————————————— ✖ nx run @storacha/upload-client:build > @storacha/[email protected] build /home/fforbeck/Development/storacha/upload-service/packages/upload-client > tsc --build

  src/types.ts(65,35): error TS2307: Cannot find module '@storacha/filecoin-client/storefront' or its corresponding type declarations.
  src/index.js(2,28): error TS2307: Cannot find module '@storacha/filecoin-client' or its corresponding type declarations.
  test/helpers/mocks.js(16,31): error TS2307: Cannot find module '@storacha/filecoin-client/storefront' or its corresponding type declarations.
   ELIFECYCLE  Command failed with exit code 1.

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

NX Ran target build for 16 projects (3s)

✔ 12/14 succeeded [12 read from cache]

✖ 2/14 targets failed, including the following:

  - nx run @storacha/filecoin-api:build
  - nx run @storacha/upload-client:build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment