8000 [Bug]: app.dock.setIcon Error · Issue #21 · NativePHP/laravel · GitHub
[go: up one dir, main page]

Skip to content

[Bug]: app.dock.setIcon Error #21

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
elsayed85 opened this issue Jul 21, 2023 · 2 comments
Closed

[Bug]: app.dock.setIcon Error #21

elsayed85 opened this issue Jul 21, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@elsayed85
Copy link

What happened?

(node:59338) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'setIcon')
at NativePHP. (/home/sayed/Desktop/DesktopApps/ray/vendor/nativephp/electron/resources/js/node_modules/nativephp-electron/dist/index.js:81:26)
at Generator.next ()
at /home/sayed/Desktop/DesktopApps/ray/vendor/nativephp/electron/resources/js/node_modules/nativephp-electron/dist/index.js:8:71
at new Promise ()
at __awaiter (/home/sayed/Desktop/DesktopApps/ray/vendor/nativephp/electron/resources/js/node_modules/nativephp-electron/dist/index.js:4:12)
at /home/sayed/Desktop/DesktopApps/ray/vendor/nativephp/electron/resources/js/node_modules/nativephp-electron/dist/index.js:78:36
(Use electron --trace-warnings ... to show where the warning was created)

How to reproduce the bug

php artisan native:serve

Package Version

0.10

PHP Version

8.1

Laravel Version

10

Which operating systems does with happen with?

Linux

Notes

No response

@elsayed85 elsayed85 added the bug Something isn't working label Jul 21, 2023
@elsayed85 elsayed85 changed the title [Bug]: [Bug]: app.dock.setIcon(state_1.default.icon) Jul 21, 2023
@elsayed85 elsayed85 changed the title [Bug]: app.dock.setIcon(state_1.default.icon) [Bug]: app.dock.setIcon Error Jul 21, 2023
@fanorama
Copy link

I had the same issue

@mpociot
Copy link
Member
mpociot commented Jul 25, 2023

Fixed it, as dock.setIcon is only available on macOS

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