-
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What were you trying to do?
I am successfully building my application for macOS (Apple Silicon).
What happened?
But the resulting .app fails to launch, throwing a series of ERR_MODULE_NOT_FOUND JavaScript errors.
How to reproduce the bug
- Run
php artisan native:buildmac (or npm run release). - Open the generated .app from the dist folder.
- The app crashes immediately with a "JavaScript error occurred in the main process" dialog.
Debug Output
Uncaught Exception: Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'electron-store' imported from /Applications/WShipERP.app/Contents/Resources/app.asar/vendor/nativephp/desktop/resources/electron/electron-plugin/dist/server/state.js
I have been manually installing missing packages one by one to get past previous errors. So far, the build has complained about the following missing dependencies:
electron-storeelectron-updaterkill-syncps-node@electron-toolkit/utils@electron/remotefix-path
It seems like these core bridge dependencies are not being bundled into the app.asar automatically, or they are missing from the nativephp/desktop requirements.
Which operating systems have you seen this occur on?
macOS
Notes
Environment
- NativePHP Version: 2.1.0
- PHP Version: 8.4 (via Laravel Herd)
- OS: macOS (ARM64)
- Electron: ^31.0.0
- Electron Builder: ^24.13.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working