8000 [Bug]: No electron app entry file found · Issue #27 · NativePHP/laravel · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Rueff19 opened this issue Jul 21, 2023 · 15 comments
Closed

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

Rueff19 opened this issue Jul 21, 2023 · 15 comments
Labels
bug Something isn't working

Comments

@Rueff19
Copy link
Rueff19 commented Jul 21, 2023

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

@Rueff19 Rueff19 added the bug Something isn't working label Jul 21, 2023
@bangbangda
Copy link

me too

@kendaniels
Copy link

Same here. Tried a few things but can't get passed this error.

@pentiminax
Copy link

Same here:

Error

@crosa7
Copy link
crosa7 commented Jul 21, 2023

Same here

@paramientos
Copy link

same here

@lukas-frey
Copy link

Same issue :)

@rappasoft
Copy link

This is a temp fix that worked for me: https://github.com/NativePHP/electron/issues/10#issuecomment-1644651637

@Rueff19
Copy link
Author
Rueff19 commented Jul 21, 2023

This is a temp fix that worked for me: NativePHP/electron#10 (comment)

@rappasoft Brilliant, that worked. At least until we get a definitive fix.

@berrugo
Copy link
berrugo commented Jul 21, 2023

This is a temp fix that worked for me: NativePHP/electron#10 (comment)

@thanks @rappasoft, got it working too

@arnedeb
Copy link
arnedeb commented Jul 23, 2023

Did anyone manage to get this working under Laravel Sail? I followed the steps from https://github.com/NativePHP/electron/issues/10#issuecomment-1644651637 after getting the app entry file error and now I'm getting the following error instead:

root@a58a045c52af:/var/www/html# php artisan native:serve
Starting NativePHP dev server…
Fetching latest dependencies…
Starting NativePHP app…
yarn run v1.22.19
warning package.json: No license field
$ electron-vite dev --watch
vite v4.3.9 building for development...

watching for file changes...

build started...
✓ 4 modules transformed.
out/main/index.js  0.54 kB
built in 95ms.

build the electron main process successfully

-----

vite v4.3.9 building for development...

dev server running for the electron renderer process at:

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose

start electron app...

/var/www/html/vendor/nativephp/electron/resources/js/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@CoeusCC
Copy link
CoeusCC commented Jul 24, 2023

Same issue. Will try @rappasoft's fix above

@rappasoft
Copy link

Same issue. Will try @rappasoft's fix above

I installed a fresh instance yesterday and it compiled with no bugs, so they fixed it for me.

@CoeusCC
Copy link
CoeusCC commented Jul 24, 2023

I found the same. I read the comment you linked to and they had an edit saying it is fixed in 0.1.1. I can confirm this fixed this issue without manual intervention. I would recommend closing this issue now.

@bangbangda
Copy link

V0.1.1 fixed.

@Rueff19
Copy link
Author
Rueff19 commented Jul 25, 2023

Same issue. Will try @rappasoft's fix above

I installed a fresh instance yesterday and it compiled with no bugs, so they fixed it for me.

Can confirm that it has been fixed in v0.1.1.
Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0