immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
33.04k stars 1.59k forks source link

fix(web): solve error starting docker for local development #9101

Closed benmccann closed 2 weeks ago

benmccann commented 2 weeks ago

I've been getting the error below whenever I run make dev update. The error doesn't stop the app from running, but it is pretty ugly, clutters up the logs, and makes you think something is wrong. This fixes it

immich_web               |   ✘ [ERROR] No matching export in "../open-api/typescript-sdk/build/index.js" for import "default"
immich_web               | 
immich_web               |     src/lib/__mocks__/sdk.mock.ts:1:7:
immich_web               |       1 │ import sdk from '@immich/sdk';
immich_web               |         │        ~~~
immich_web               |         ╵        defaults
immich_web               | 
immich_web               |   Did you mean to import "defaults" instead?
immich_web               | 
immich_web               |     ../open-api/typescript-sdk/build/fetch-client.js:9:13:
immich_web               |       9 │ export const defaults = {
immich_web               |         ╵              ~~~~~~~~
cloudflare-pages[bot] commented 2 weeks ago

Deploying immich with  Cloudflare Pages  Cloudflare Pages

Latest commit: cdc5102
Status: ✅  Deploy successful!
Preview URL: https://bea203a7.immich.pages.dev
Branch Preview URL: https://docker-error.immich.pages.dev

View logs

ben-basten commented 2 weeks ago

For reference, looks like there is a duplicate PR #8550 for this.

benmccann commented 2 weeks ago

Ah, thanks. I didn't know about that one. I'll close this and merge that one then