Skip to content

[Bug]: TypeError: Cannot read properties of undefined (reading 'setIcon') #22

Closed
@fanorama

Description

@fanorama

What happened?

I getting this error when run my laravel app with nativephp

[7075:0721/100333.390724:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[7075:0721/100333.390847:ERROR:select_file_dialog_linux_portal.cc(274)] Failed to read portal version property

(node:7075) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'setIcon')
at NativePHP. (/home/septiandev/Development/my-laravel-boilerplate/vendor/nativephp/electron/resources/js/node_modules/nativephp-electron/dist/index.js:81:26)
at Generator.next ()
at /home/septiandev/Development/my-laravel-boilerplate/vendor/nativephp/electron/resources/js/node_modules/nativephp-electron/dist/index.js:8:71
at new Promise ()
at __awaiter (/home/septiandev/Development/my-laravel-boilerplate/vendor/nativephp/electron/resources/js/node_modules/nativephp-electron/dist/index.js:4:12)
at /home/septiandev/Development/my-laravel-boilerplate/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)

(node:7075) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

How to reproduce the bug

When i run native:serve command it give me this error

Package Version

0.1.0

PHP Version

8.1

Laravel Version

10.2

Which operating systems does with happen with?

Linux

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions