Skip to content

[Bug]: No electron app entry file found #27

@Rueff19

Description

@Rueff19

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions