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

Laravel application not showing #352

Closed
arjunv615 opened this issue Aug 28, 2024 · 4 comments
Closed

Laravel application not showing #352

arjunv615 opened this issue Aug 28, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@arjunv615
Copy link

arjunv615 commented Aug 28, 2024

What were you trying to do?

While starting the development server with the command php artisan native:serve, the Laravel application is not appearing in a native desktop window.

What happened?

It should now show my Laravel application running in a native desktop window.

How to reproduce the bug

After completing your installation process mentioned in your docsWhile starting the development server with the command php artisan native:serve, the Laravel application is not appearing in a native desktop window.

Package Versions

"version": "0.7.0"

PHP Version

8.3.8

Laravel Version

10.0.0 and in 11.9

Node Version

22.5

Which operating systems have you seen this occur on?

Windows

OS version

10.0.22631.4037

Notes

More details: "npm error Exit handler never called!
npm error This is an error with npm itself. Please report this error at:
npm error https://github.com/npm/cli/issues
npm error A complete log of this run can be found in: C:\Users\abc\AppData\Local\npm-cache_logs\2024-08-28T11_05_25_105Z-debug-0.log

Starting NativePHP app

Running the dev script with npm...

Fetching latest dependencies…

[email protected] dev
cross-env node php.js && electron-vite dev --watch

'cross-env' is not recognized as an internal or external command,
operable program or batch file."
No response

@arjunv615 arjunv615 added the bug Something isn't working label Aug 28, 2024
@insidert
Copy link

Did you install the dependencies first? php artisan native:install

@arjunv615
Copy link
Author

Yes, I have installed the dependencies using this command and followed all the steps outlined in the NativePHP documentation: Getting Started - Installation

@simonhamp
Copy link
Member

@arjunv615 this can happen if there's an exception during the bootup sequence of Laravel. Please check your logs to see if there are any errors

@simonhamp
Copy link
Member

Looping back on this as it's been quiet for a couple of months. Please try updating to the latest version of nativephp/electron (0.8.4 as of today).

If there are exceptions at app bootup during native:serve, you should now see these in the terminal which help you debug even faster. For example:

Screenshot 2024-11-11 at 13 02 59

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

3 participants