For canvas issue:
UPD: I've tested the most recent Joplin version 2.14.21. Seems it has no build issues. No any extra patches needed. You just have to wait until it's tagged as 'Latest' and push updated PKGBUILD to AUR.
All below is related to version 2.14.20
https://github.com/Automattic/node-canvas/issues/2377#issuecomment-2085815152
Here the patch: https://github.com/trap000d/aur/blob/master/joplin-electron/0006-update-canvas-version.patch
With it yarn still complains for canvas@npm:2.11.2 (I have no idea where comes from, probably as other module dependency from yarn.lock). But then package builds and joplin runs. On the other hand, if I remove yarn.lock, then other errors come - with codemirror.
After all attempts to resolve dependencies I assume currently all is broken. The only way to correctly build the package is to downgrade node.
Pinned Comments
cuihao commented on 2025-05-18 23:40 (UTC)
Thank you dosenpils and masterkorp for supporting the package.
I replaced the PKGBUILD with the version I wrote for the archlinuxcn repo. I will do my best to follow the latest nodejs and electron versions.
Please try to build in a clean chroot (i.e., with
extra-x86_64-build
fromdevtools
package) if you have problems building the package.