Server .92.4 - Named export 'fileTypeFromBuffer' not found #5948
Unanswered
digiospace
asked this question in
Ideas
Replies: 0 comments 9 replies
-
@digiospace , I suspect two potential causes here. If you upgraded by coping over the source code for TriliumNext over the old Trilium instance, then most likely rm -r node_modules
npm i If it was a clean install, then most likely the Node.js is at fault here. We are officially running on Node 22, the version 18 is pretty old and not supported by us. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Debian 12. nodejs v18.19.0 npm 9.2.0
upgrading from an older install of server from zadam.
running .92.4 gives me:
file: ./node_modules/image-type/index.js:1
SyntaxError: Named export 'fileTypeFromBuffer' not found
So I changed the first line of ./node_modules/image-type/index.js from:
import {fileTypeFromBuffer} from 'file-type';
to:
and things worked after that. I do not know if this was the correct way to fix that.
TriliumNext Version
TriliumNextNotes-Server-v0.92.4
What operating system are you using?
Debian Bookworm
What is your setup?
Server on Debian 12 server, Notes on Debian 12 laptop.
Operating System Version
Debian 12. nodejs v18.19.0 npm 9.2.0
Error logs
No response
Beta Was this translation helpful? Give feedback.
All reactions