8000 [Bug]: php artisan native:serve - Fails to open native app instance/UI · Issue #14 · NativePHP/laravel · GitHub
[go: up one dir, main page]

Skip to content

[Bug]: php artisan native:serve - Fails to open native app instance/UI #14

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
blessedjasonmwanza opened this issue Jul 20, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@blessedjasonmwanza
Copy link
blessedjasonmwanza commented Jul 20, 2023

What happened?

When I run php artisan native:serve, the terminal fails to start the native application as per documentation expectations. Below is a screenshot attached.

Node version;

image

How to reproduce the bug

php artisan native:serve gets stuck at node unhandled promise rejection; see screenshot below;

image

Package Version

0.1.0

PHP Version

8.2.8

Laravel Version

10.10

Which operating systems does with happen with?

Linux

Notes

No response

@blessedjasonmwanza blessedjasonmwanza added the bug Something isn't working label Jul 20, 2023
@antonioanerao
Copy link

I`m facing the same. Trying a few things to turn around it

@antonioanerao
Copy link

I managed to use the project in Ubuntu

After you run php artisan native:install, say no when it ask you to run the server. Then, copy you php file from /usr/bin/php to nativephp/vendor/nativephp/php-bin/bin/mac/x86.

After that when you run php artisan native:run it will use your php library instead of the mac php library version

@mpociot
Copy link
Member
mpociot commented Jul 25, 2023

The app.dock error is now resolved, but there'll probably be other Linux related issues, as we currently don't distribute PHP binaries for Linux.

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
0