laravel: [Bug]: No electron app entry file found

What happened?

When trying to run php artisan native:serve an error is given:

error during start dev server and electron app: Error: No electron app entry file found: /Users/[name]/Sites/laravel-example/vendor/nativephp/electron/resources/js/out/main/index.js at ensureElectronEntryFile (/Users/[name]/Sites/laravel-example/vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-3592fc5a.js:26:23) at Object.startElectron (/Users/[name]/Sites/laravel-example/vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-3592fc5a.js:120:5) at createServer (/Users/[name]/Sites/laravel-example/vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-86ea98bb.js:74:21) at async CAC.<anonymous> (/Users/[name]/Sites/laravel-example/vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/cli.js:48:9)

How to reproduce the bug

Follow the documentation installation steps and then run php artisan native:serve

Package Version

0.1.0

PHP Version

8.2.0

Laravel Version

10.15.0

Which operating systems does with happen with?

macOS

Notes

Additional info: npm - v9.5.0 yarn - v1.22.19 node - v18.15.0

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 2
  • Comments: 15

Most upvoted comments