Comments (8)
I encountered the same issue(links out of the package), and I resolved it by removing yarn.lock and node_modules. Switch to npm:
rm -rf node_modules yarn.lock
npm i
from forge.
I seem to be seeing a related issue running electron-forge package --platform darwin
while building on macOs.
An unhandled rejection has occurred inside Forge:
Error: /var/folders/wl/pm6gbjcn1gl79xh6vjznq7k80000gn/T/electron-packager/tmp-NNy4Lz/Electron.app/Contents/Resources/app/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver: file "../../../../../../../../../../../../var/folders/wl/pm6gbjcn1gl79xh6vjznq7k80000gn/T/electron-packager/tmp-NNy4Lz/Electron.app/Contents/Resources/app/node_modules/@babel/helper-compilation-targets/node_modules/semver/bin/semver.js" links out of the package
at Filesystem.insertLink (/Users/dietrichstein/deepmojo-electron-vite/node_modules/@electron/asar/lib/filesystem.js:106:13)
at handleFile (/Users/dietrichstein/deepmojo-electron-vite/node_modules/@electron/asar/lib/asar.js:132:20)
at next (/Users/dietrichstein/deepmojo-electron-vite/node_modules/@electron/asar/lib/asar.js:148:11)
at next (/Users/dietrichstein/deepmojo-electron-vite/node_modules/@electron/asar/lib/asar.js:149:12)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MacApp.asarApp (/Users/dietrichstein/deepmojo-electron-vite/node_modules/@electron/packager/src/platform.ts:245:5)
at async MacApp.buildApp (/Users/dietrichstein/deepmojo-electron-vite/node_modules/@electron/packager/src/platform.ts:150:5)
at async MacApp.initialize (/Users/dietrichstein/deepmojo-electron-vite/node_modules/@electron/packager/src/platform.ts:141:7)
at async MacApp.create (/Users/dietrichstein/deepmojo-electron-vite/node_modules/@electron/packager/src/mac.ts:435:5)
at async Promise.all (index 0)
at async packager (/Users/dietrichstein/deepmojo-electron-vite/node_modules/@electron/packager/src/packager.ts:246:20)
Presumably, this could be reproducible on LuanRoger/electron-shadcn
but I have not tried.
I tried several things including (1) a packageAfterPrune()
hook trying to delete the file assuming it is being left behind due to a versioning mismatch (2) derefSymlinks: false
, (3) vite-plugin-commonjs-externals
, (4) optimizeDeps.exclude
, (5) externalizeDepsPlugin
from electron-vite
. No combination of workaround using any them were fruitful for me. Currently looking at what electron-vite really has to offer as an alternative.
Edit: Reproduced the OP report using the steps provided:
An unhandled rejection has occurred inside Forge:
Error: /var/folders/wl/pm6gbjcn1gl79xh6vjznq7k80000gn/T/electron-packager/tmp-S2cbBg/Electron.app/Contents/Resources/app/node_modules/@vue/compiler-core/node_modules/.bin/parser: file "../../../../../../../../../../../../var/folders/wl/pm6gbjcn1gl79xh6vjznq7k80000gn/T/electron-packager/tmp-S2cbBg/Electron.app/Contents/Resources/app/node_modules/@babel/parser/bin/babel-parser.js" links out of the package
at Filesystem.insertLink
from forge.
Is there a solution?
Now how to operate can make or package normally.
Or do you need to wait for a new release? Maybe downgrade to 7.3.0?
from forge.
I encountered the same issue(links out of the package), and I resolved it by removing yarn.lock and node_modules. Switch to npm:
rm -rf node_modules yarn.lock npm i
Its worked for me!
from forge.
After many tests, the problem was found, as long as the vue was introduced and then packaged, the error was reported, and there was no problem when the vue was removed. Is there any feasible solution?
from forge.
https://www.electronforge.io/guides/framework-integration/vue-3#integrating-vue-3-code
Follow the document
An error occurs after npm install vue.
No problem after npm uninstall vue
from forge.
God can help with that. Thank you
from forge.
@Nick22nd @dietrich-stein @anaisbetts
from forge.
Related Issues (20)
- `The installed version of @vercel/webpack-asset-relocator-loader does not appear to be compatible with Forge` on new patch version of dev dependency `@vercel/webpack-asset-relocator-loader` HOT 3
- HttpError: Not Found HOT 1
- plugin-vite - Error: Cannot copy '../which/bin/node-which' to a subdirectory of itself, '../which/bin/node-which'.
- Running ```electron-forge make``` fails with no message at 'Preparing native dependencies' stage HOT 11
- Electron forge fails to create x64 DMG on arm64 with error related to `fs-xattr`
- Pre and Post Install Script in electron-fordge pkg maker Not working HOT 6
- Installation failed with Squirell: IT policies HOT 1
- Cannot produce a working windows binary from template project with no changes HOT 3
- Must use import to load ES Module: webpack.main.config.ts
- Missing `ts-node` as optional peer dependency
- The installation process is stuck and the loading image is displayed. The application cannot be started.
- [Typescript + ESM + PnP] `forge.config.cts` not recognized with PnP (Plug'n'Play) HOT 5
- Electron forge is showing a new Error where it cannot copy my app to /volumes dir HOT 1
- The packaged OSX or Ubuntu app doesn't work correctly if it was started from another app
- Shipping broken. EJSONPARSE error HOT 1
- Vite extension hangs on building main code
- Update Docs for cloud-based EV code signing HOT 1
- Electron-Forge - Webpack - Start - ENOSPC
- electron-forge publish hangs on "Preparing native dependencies" HOT 1
- image cannot be resolved when application is packed HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forge.