nodegui / svelte-nodegui

Build performant, native and cross-platform desktop applications with native Svelte + powerful CSS-like styling.🚀
https://svelte.nodegui.org/
MIT License
2.84k stars 55 forks source link

Rendering Breaks if User Components Used #68

Closed jsprog closed 2 years ago

jsprog commented 3 years ago

Description:

Test Platform:

ceremcem commented 2 years ago

Is there any progress on this?

shirakaba commented 2 years ago

I’ve no idea why layout is going strange as I haven’t changed the code since the last working release. I’ve tried a few combinations of dependencies with no luck. I’m not sure whether it’s a problem in Svelte NodeGUI, NodeGUI itself, Qt5, or computer environment. Until some clues emerge, I’m not sure how to proceed.

ceremcem commented 2 years ago

I don't understand if the layout is broken also for you or not. If it works for you, I would suggest setting up a virtual environment, which I find nodeenv useful.

I'm using Debian Buster and this release has a known Qt5 issue, so it might be a Qt5 related issue.

Debian Buster NodeJS: v12.22.6 Qt version: 5.11.3

Levyks commented 2 years ago

I'm having the same problem in Windows 11, so it's probably not an issue with Debian Buster

I've tested with Node v16.13.0 and v14.6.0

I used the svelte-nodegui-starter template with the version of @nodegui/svelte-nodegui bumped to 0.1.2

shirakaba commented 2 years ago

I don't understand if the layout is broken also for you or not.

It’s broken for me on my M1 Mac but wasn’t last time I checked on my Intel Mac. I tried various different mixtures of dependencies, but my M1 Mac can’t run the same dependencies as the Intel one, so I can’t compare like-for-like.

When I have a free moment, I can try on my Intel Mac again, but I remember this issue being filed by others while it was still working perfectly fine on my Intel Mac.

ceremcem commented 2 years ago

Might this be related to the GCC version? Mine is: gcc version 8.3.0 (Debian 8.3.0-6)

shirakaba commented 2 years ago

I doubt it. Could you try with svelte-nodegui@0.0.3-alpha.1, out of curiosity?

Levyks commented 2 years ago

I doubt it. Could you try with svelte-nodegui@0.0.3-alpha.1, out of curiosity?

That fixed it for me, any significant changes from that version to the current ones?

shirakaba commented 2 years ago

Closed in favour of the more focused issue, #72.