Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] : Fails to build #816

Open
Martmists-GH opened this issue Feb 23, 2025 · 5 comments
Open

[BUG] : Fails to build #816

Martmists-GH opened this issue Feb 23, 2025 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Martmists-GH
Copy link

Issue encountered

==> Making package: bs-manager-git v1.4.13.r20.g5462c88-1 (Sun 23 Feb 2025 10:20:10 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating bs-manager git repo...
  -> Found bs-manager.desktop
==> Validating source files with sha256sums...
    bs-manager ... Skipped
    bs-manager.desktop ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of bs-manager git repo...
Cloning into 'bs-manager'...
done.
==> Starting prepare()...
Downloading and installing node v22.14.0...
Downloading https://nodejs.org/dist/v22.14.0/node-v22.14.0-linux-x64.tar.xz...
########################################################################################################################################################################################################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v22.14.0 (npm v10.9.2)
Creating default alias: default -> 22 (-> v22.14.0)
==> Starting pkgver()...
==> Updated version: bs-manager-git v1.5.2.r81.g5dd80ef-1
==> Sources are ready.
==> Making package: bs-manager-git v1.5.2.r81.g5dd80ef-1 (Sun 23 Feb 2025 10:20:14 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...

> bs-manager@1.5.2 postinstall
> ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll

  • electron-builder  version=25.1.8
  • loaded configuration  file=package.json ("build" field)
  • installing production dependencies  platform=linux arch=x64 appDir=/home/mart/.cache/yay/bs-manager-git/src/bs-manager/release/app
  • executing @electron/rebuild  electronVersion=33.3.1 arch=x64 buildFromSource=false appDir=release/app
  • installing native dependencies  arch=x64
  • completed installing native dependencies

> bs-manager@1.5.2 build:dll
> cross-env NODE_ENV=development webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.ts

[webpack-cli] Failed to load '/home/mart/.cache/yay/bs-manager-git/src/bs-manager/.erb/configs/webpack.config.renderer.dev.dll.ts' config
[webpack-cli] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/mart/.cache/yay/bs-manager-git/src/bs-manager/.erb/configs/webpack.config.base' imported from /home/mart/.cache/yay/bs-manager-git/src/bs-manager/.erb/configs/webpack.config.renderer.dev.dll.ts
    at finalizeResolution (node:internal/modules/esm/resolve:275:11)
    at moduleResolve (node:internal/modules/esm/resolve:860:10)
    at defaultResolve (node:internal/modules/esm/resolve:984:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:719:12)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:643:25)
    at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:678:38)
    at ModuleLoader.resolveSync (node:internal/modules/esm/loader:701:52)
    at #cachedResolveSync (node:internal/modules/esm/loader:662:25)
    at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:390:50)
    at new ModuleJobSync (node:internal/modules/esm/module_job:342:34) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///home/mart/.cache/yay/bs-manager-git/src/bs-manager/.erb/configs/webpack.config.base'
}
npm error code 2
npm error path /home/mart/.cache/yay/bs-manager-git/src/bs-manager
npm error command failed
npm error command sh -c ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll
npm error A complete log of this run can be found in: /home/mart/.npm/_logs/2025-02-23T21_20_15_031Z-debug-0.log
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: bs-manager-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
bs-manager-git - exit status 4

Expected Behavior

No response

Steps to Reproduce

No response

Operating System

None

Version

No response

Additional Context

No response

@Martmists-GH Martmists-GH added the bug Something isn't working label Feb 23, 2025
@silentrald
Copy link
Contributor

@Martmists-GH could you check if you cpuld pull the bs-manager-git manually and just manually call the pkgbuild if that would work.

@Martmists-GH
Copy link
Author

How would I go about doing that?

@silentrald
Copy link
Contributor

@Martmists-GH See the commands below

git clone https://aur.archlinux.org/bs-manager-git.git
cd bs-manager-git
makepkg -si

@XeonAbove
Copy link

The same thing is happening to me and others under the aur page.

@silentrald
Copy link
Contributor

@XeonAbove I suspect this to be an incorrect node version. Case when you install it normally using the indicated node version 22.11.0, it builds fine, but when its getting installed with yay/paru, somehow its just defaulting to latest node 23.xx.x which causes the issue.

So we're currently figuring out how to downgrade properly on installing (ie. using nvm but still doesnt work for some reason).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants