Skip to content

Lock @vercel/webpack-asset-relocator-loader at 1.7.3#35

Open
ryanhugh wants to merge 2 commits intospaceagetv:mainfrom
ryanhugh:main
Open

Lock @vercel/webpack-asset-relocator-loader at 1.7.3#35
ryanhugh wants to merge 2 commits intospaceagetv:mainfrom
ryanhugh:main

Conversation

@ryanhugh
Copy link

@ryanhugh ryanhugh commented Feb 9, 2025

If you download this repo and run npm i -f you will get the following issue. This happens because @vercel/webpack-asset-relocator-loader version 1.7.4 is installed because package.json specifies ^1.7.3. However, 1.7.4 crashes with this error. Locking it at 1.7.3 fixes the issues.

More details here: electron/forge#3600

> npm run package
yarn run v1.22.19
$ electron-forge package
✔ Checking your system
✔ Preparing to package application
❯ Running packaging hooks
  ✔ Running generateAssets hook
  ❯ Running prePackage hook
    ✔ [plugin-webpack] Preparing native dependencies
    ✖ [plugin-webpack] Building webpack bundles
      › Compilation errors in the renderer: assets by status 1.36 MiB [cached] 4 assets
        runtime modules 2.58 KiB 10 modules
        javascript modules 26.5 KiB
        cacheable modules 26.1 KiB
        modules by path ./node_modules/ 22.7 KiB 10 modules
        modules by path ./src/renderer/ 3.34 KiB
        modules by path ./src/renderer/*.css 2.37 KiB 2 modules
        + 2 modules
        + 10 modules
        ./src/renderer/flower.jpg 1.34 MiB (asset) 42 bytes (javascript) [built] [code generated]
        ERROR in webpack/runtime/compat
        The installed version of @vercel/webpack-asset-relocator-loader does not appear to be compatible with Forge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant