[BUG] immich-microservices_1 error TS2694: #75

Closed
opened 2026-02-04 17:20:03 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @alexistay on GitHub (May 23, 2022).

Following the readme and using docker, after starting the server with
docker-compose -f ./docker/docker-compose.yml up
,I get the following errors:

immich-web_1            | Run npm run preview to preview your production build locally.
immich-web_1            |
immich-web_1            | > Using @sveltejs/adapter-node
immich-web_1            |   ✔ done
immich-web_1            | Listening on 0.0.0.0:3000
immich-microservices_1  | upload/server/src/api-v1/asset/asset.controller.ts:56:56 - error TS2694: Namespace 'global.Express' has no exported member 'Multer'.
immich-microservices_1  |
immich-microservices_1  | 56     @UploadedFiles() uploadFiles: { assetData: Express.Multer.File[]; thumbnailData?: Express.Multer.File[] },
immich-microservices_1  |                                                           ~~~~~~
immich-microservices_1  | upload/server/src/api-v1/asset/asset.controller.ts:56:95 - error TS2694: Namespace 'global.Express' has no exported member 'Multer'.
immich-microservices_1  |
immich-microservices_1  | 56     @UploadedFiles() uploadFiles: { assetData: Express.Multer.File[]; thumbnailData?: Express.Multer.File[] },
immich-microservices_1  |

and lot of similar errors which I truncated off. Not sure what I'm missing. Using ubuntu.

Originally created by @alexistay on GitHub (May 23, 2022). Following the readme and using docker, after starting the server with `docker-compose -f ./docker/docker-compose.yml up` ,I get the following errors: ``` immich-web_1 | Run npm run preview to preview your production build locally. immich-web_1 | immich-web_1 | > Using @sveltejs/adapter-node immich-web_1 | ✔ done immich-web_1 | Listening on 0.0.0.0:3000 immich-microservices_1 | upload/server/src/api-v1/asset/asset.controller.ts:56:56 - error TS2694: Namespace 'global.Express' has no exported member 'Multer'. immich-microservices_1 | immich-microservices_1 | 56 @UploadedFiles() uploadFiles: { assetData: Express.Multer.File[]; thumbnailData?: Express.Multer.File[] }, immich-microservices_1 | ~~~~~~ immich-microservices_1 | upload/server/src/api-v1/asset/asset.controller.ts:56:95 - error TS2694: Namespace 'global.Express' has no exported member 'Multer'. immich-microservices_1 | immich-microservices_1 | 56 @UploadedFiles() uploadFiles: { assetData: Express.Multer.File[]; thumbnailData?: Express.Multer.File[] }, immich-microservices_1 | ``` and lot of similar errors which I truncated off. Not sure what I'm missing. Using ubuntu.
Author
Owner

@alextran1502 commented on GitHub (May 23, 2022):

Ah I encountered this error before, this is a conflict when mounting the UPLOAD folder location to a densely populated folder location. For example, I mounted it to ~/Download and it showed this error. I will work if you create another sub folder and point the environment variable to that path i.r ~/Download/immich-data

@alextran1502 commented on GitHub (May 23, 2022): Ah I encountered this error before, this is a conflict when mounting the UPLOAD folder location to a densely populated folder location. For example, I mounted it to `~/Download` and it showed this error. I will work if you create another sub folder and point the environment variable to that path i.r `~/Download/immich-data`
Author
Owner

@alexistay commented on GitHub (May 23, 2022):

Thanks. Your fix works. Seems like a strange bug though.

@alexistay commented on GitHub (May 23, 2022): Thanks. Your fix works. Seems like a strange bug though.
Author
Owner

@alextran1502 commented on GitHub (May 23, 2022):

Yeah, I don't understand this fully either, somethings strange with the way Docker mounts things

@alextran1502 commented on GitHub (May 23, 2022): Yeah, I don't understand this fully either, somethings strange with the way Docker mounts things
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#75