1.8.1 doesnt build for me and gives the error
ModuleNotFoundError: Module not found: Error: Can't resolve './component-index' in '/home/xx/.cache/pikaur/build/element-desktop-git/src/element-web/node_modules/matrix-react-sdk/src'
Git Clone URL: | https://aur.archlinux.org/element-desktop-git.git (read-only, click to copy) |
---|---|
Package Base: | element-desktop-git |
Description: | Glossy Matrix collaboration client — desktop version. |
Upstream URL: | https://element.io |
Licenses: | Apache |
Conflicts: | element-desktop |
Provides: | element-desktop |
Submitter: | idanoo |
Maintainer: | Xangelix |
Last Packager: | Xangelix |
Votes: | 14 |
Popularity: | 0.000106 |
First Submitted: | 2020-07-18 02:27 (UTC) |
Last Updated: | 2024-01-15 19:30 (UTC) |
1.8.1 doesnt build for me and gives the error
ModuleNotFoundError: Module not found: Error: Can't resolve './component-index' in '/home/xx/.cache/pikaur/build/element-desktop-git/src/element-web/node_modules/matrix-react-sdk/src'
I also receive error messages:
==> Missing dependencies:
-> nodejs<16
==> ERROR: Could not resolve all dependencies.
error: failed to build 'element-desktop-git-1.7.25.r21.ge4c9444fe-1 (element-web-git element-desktop-git)':
error: packages failed to build: element-desktop-git-1.7.25.r21.ge4c9444fe-1 (element-web-git element-desktop-git)
When I try to install I recieve the error:
error merging element-desktop-git: fatal: No current branch.
I had some issues building 1.7.27 but succeeded after adding the following to the prepare section
For anyone adopting this package: I did something very similar in my private fork and can confirm this works, so I'd suggest patching this until it's fixed upstream instead of setting nodejs<16
.
I have moved on from manjaro to NixOS, so I'm disowning this package again. Thank you for the recent comments.
I had some issues building 1.7.27 but succeeded after adding the following to the prepare section:
cd ../element-desktop
# Switch target to output to directory rather than .deb package
sed -i 's/"target": "deb"/"target": "dir"/g' package.json
sed -i 's@"https://packages.riot.im/desktop/update/"@null@g' element.io/release/config.json
+ sed -i '/seshat/s/"2.2.3"/"2.2.4"/' package.json
+ sed -i '/electron-builder/s/"22.10.5"/"22.11.4"/g' package.json
yarn install
see upstream reports:
As some npm dependencies are not yet compatible with NodeJS 16 you might wanna set the nodejs dependency to
nodejs<16
I have adopted this package and it will now follow the upstream 'develop' branch. With recent changes it's now based on electron version 12 with native Wayland compatibility. Start with the following flags to test it:
element-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland
Unfortunately, I have to withdraw from the maintenance of this package for private reasons. Feel free to adopt.
You don't have to update it every time there is a new commit, makepkg will automatically get the latest commit and create a package for that commit, this is actually less work than what you are doing now.
You should read all of the VCS package guidelines and this note about the difference between -git and normal packages
Pinned Comments