-
-
Notifications
You must be signed in to change notification settings - Fork 168
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]: php artisan native:serve requires yarn? #7
Comments
I can confirm the same here. Latest MacOS, Macbook Air M1 running PHP through Herd. |
You need to enable If you are Node.js ^16.17 or >=18.6 I was able to run basic application after enabling |
I can confirm the same. Yarn is run when starting NativePHP App. It has to be added to the documentation as a requirement. |
Another confirmation here that Yarn seems to be required 👍 |
+1 |
This did it for me, however now i'm running in to this issue #16, so i'll move on from this thread :) Thanks, @mraheelkhan ! |
That work for me. It is running now. But when native:install and native:serve, that only published NativeAppServiceProvider. I don't even get config file. |
In the command indeed they use yarn but I wonder if it's not just an error since for the install they use npm.
|
@Amorfx , I found that last night and wanted to change |
@mraheelkhan I tried and then came across the issue : #27 |
+1 |
I have yarn installed. But when I try to run error during start dev server and electron app:
Error: No electron app entry file found: /Users/irsyadadl/sites/desktop/vendor/nativephp/electron/resources/js/out/main/index.js
at ensureElectronEntryFile (/Users/irsyadadl/sites/desktop/vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-3592fc5a.js:26:23)
at Object.startElectron (/Users/irsyadadl/sites/desktop/vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-3592fc5a.js:120:5)
at createServer (/Users/irsyadadl/sites/desktop/vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/chunks/lib-86ea98bb.js:74:21)
at async CAC.<anonymous> (/Users/irsyadadl/sites/desktop/vendor/nativephp/electron/resources/js/node_modules/electron-vite/dist/cli.js:48:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Is there anyone have the same things and has solved the problem? |
@irsyadadl , I remember someone posted a solution for this on other issues, maybe check this out #27 |
Alright, but this is will only temporary, isn't it. I don't think modify the vendor is legal 👯 |
@irsyadadl , Yes, that's correct, it's only a temporary fix so can give a shot to NativePhp. :-) |
Thank you @mraheelkhan |
Same issue. This didn't work: corepack prepare yarn@stable --activate I guess I'll come back in a few weeks after a few revisions and updates to the documentation. I see that Jordan Dalton was able to get it installed, but then several of the core features wouldn't work for him. So, alpha is alpha. Exciting, but hard to differentiate between user error on my/our part and what just might be the initial pains of a brand new alpha release. |
+1 |
Yarn is now no longer used and we default to npm everywhere |
What happened?
Unable to serve NativePhp server via
php artisan native:serve
.I am running MacOS and Laravel Valet.
How to reproduce the bug
php artisan native:install
Also running
php artisan native:serve
Results in same output.
Package Version
Alpha Laracon release
PHP Version
8.1.19
Laravel Version
10.15.0
Which operating systems does with happen with?
macOS
Notes
Do I need to explicitly install and configure
yarn
for NativePhp?Eagerly waiting to give it a try.
A lots of Love.
The text was updated successfully, but these errors were encountered: