NativePHP / laravel

Laravel wrapper for the NativePHP framework
https://nativephp.com
MIT License
3.17k stars 164 forks source link

Laravel application not showing #352

Open arjunv615 opened 2 months ago

arjunv615 commented 2 months ago

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…

NativePHP@1.0.0 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

insidert commented 2 months ago

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

arjunv615 commented 2 months ago

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

simonhamp commented 1 month ago

@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