Closed sbell8-chwy closed 9 months ago
Can you type node --version
and report back your version?
From the stack trace the OP is using 18.6. File
as a top level global object was added in node version 20.
Ah we need to update the documentation
Ah, I'll switch my node version and try again. I was unaware File was added recently in node.
Upgrading to node v20 does appear to fix the problem. Installing v20 then reinstalling @immich/cli and running did in fact work and upload images. I can close this bug unless you want to leave it open as a documentation update ticket.
Let's leave it open until a doc change is added that specifies this requires node v20.
The bug
I think this commit broke the cli: https://github.com/immich-app/immich/commit/7e38e7c949aee4ec68dc8fca6bd087955996e568
Specifically what I think happened. It seems the file cores/models/crawled-asset.js was renamed to cores/models/asset.js. As part of that rename two fields in the
Asset
class were changed from being of type fs.ReadStream and Buffer to File.File is a js browser api not available in npm, causing the above ReferenceError.
The OS that Immich Server is running on
Pop-OS
Version of Immich Server
1.86.0
Version of Immich Mobile App
1.87.0 build.111
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response