Skip to content
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

[Bug]: native:serve won't start app window #28

Closed
arbazargani opened this issue Jul 21, 2023 · 11 comments
Closed

[Bug]: native:serve won't start app window #28

arbazargani opened this issue Jul 21, 2023 · 11 comments
Labels
bug Something isn't working windows

Comments

@arbazargani
Copy link

What happened?

php artisan native:serve won't do anything at all.
just ends with no window or anything.
image

How to reproduce the bug

php artisan native:serve

Package Version

0.1.0

PHP Version

8.1.11

Laravel Version

10.15.0

Which operating systems does with happen with?

Windows

Notes

No response

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

On mac, same error:

dev server running for the electron renderer process at:

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
error during start dev server and electron app:
Error: No electron app entry file found: /..../vendor/nativephp/electron/resources/js/out/main/index.js
    at ensureElectronEntryFile (/.../vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-3592fc5a.js:26:23)
    at Object.startElectron (/.../vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-3592fc5a.js:120:5)
    at createServer (/.../vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-86ea98bb.js:74:21)
    at async CAC.<anonymous> (/.../vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/cli.js:48:9)
error Command failed with exit code 1.

@Rueff19
Copy link

Rueff19 commented Jul 21, 2023

On mac, same error:

dev server running for the electron renderer process at:

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
error during start dev server and electron app:
Error: No electron app entry file found: /..../vendor/nativephp/electron/resources/js/out/main/index.js
    at ensureElectronEntryFile (/.../vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-3592fc5a.js:26:23)
    at Object.startElectron (/.../vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-3592fc5a.js:120:5)
    at createServer (/.../vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-86ea98bb.js:74:21)
    at async CAC.<anonymous> (/.../vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/cli.js:48:9)
error Command failed with exit code 1.

duplicate of #27

@Nielson
Copy link

Nielson commented Jul 22, 2023

Same problem here. @rappasoft posted a temporary fix in #27 (https://github.com/NativePHP/electron/issues/10#issuecomment-1644651637) which worked for me.

@w0rd-driven
Copy link

The cert files have been included for me but there were some extra steps I needed, in case this helps. I also saw no errors that pointed to any problems.

I suspect the JS changes will be published to npm soon where a reboot may or may not be necessary.

@ShaneShipston
Copy link
Contributor

If you are willing to make some code modifications you can follow these instructions to get native:serve to work on Windows. This will only get native:serve to work. It's as far as I've tried so far.

NativePHP Windows Support

@franvilladaa
Copy link

@arbazargani Could you solve this issue? Same thing is happening to me on Windows 11. I followed this gist: https://gist.github.com/ShaneShipston/8bb7cabc423cf0cc64da0eacafa53171 and when I run the php artisan native:serve I have the same output as you. No error nothing, but also not windows app opening

@arbazargani
Copy link
Author

@franvilladaa i'm on win11 too & no bro, no fix yet. even updating nativephp version to latest minor update via composer, but problem exists. sorrey. hope problems solve soon & we can test nativephp too.

@ShaneShipston
Copy link
Contributor

Add -v to your serve command to see further information. There might be an error you aren't seeing

Ex. php artisan native:serve -v

@cdmathukiya
Copy link

@EJyoungc
Copy link

i am the same issue but app selector appears
Screenshot (17)

@simonhamp
Copy link
Member

A whole load of improvements to development and building on Windows have been made recently.

Please update to nativephp/electron v0.6 and try again.

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

No branches or pull requests

10 participants