v2.0.0-beta.27 svelte + dev #1054
Replies: 3 comments
-
Hey Charlie! Glad you're enjoying it. There's been some work on the Dev setup so I'll test and see if I need to update the default template. Thanks for your patience 🙏 |
Beta Was this translation helpful? Give feedback.
-
Has this issue been resolved? I have the same problem. $ wails version
v2.0.0-beta.30
system
------
OS: Windows 10 Pro
Version: 1909 (Build: 18363)
ID:
Go Version: go1.17.6
Platform: windows
Architecture: amd64 And i did some tries but not works.
|
Beta Was this translation helpful? Give feedback.
-
@alanchenchen Are you using Svelte or SvelteKit? If using Svelte (not SvelteKit), are you using Vite or another bundler? The biggest issue I saw with Vite is how it works out-of-the-box. VIte's dev mode, by default, runs off of the un-built raw code and somehow "builds on the fly as needed". The problem I ran into with Vite and Wails, is that Wails expects (and most likely needs) that build process for dev mode. Therefore I switched to using Vite’s build command with the I believe the issues with Wails and SvelteKit is that, as far as I know, you cannot pass that If you are using Svelte with Vite, I'd not use the If you're using another bundler, mayby see if there's an option that would work in a similar way. |
Beta Was this translation helpful? Give feedback.
-
Hi, I ❤️ wails and really happy there's a svelte template for V2.
I am having trouble with getting changes to frontend to reflect in browser&app, I'm having to stop and restart wails dev each time I make a change to the project.
I tried using -reloaddirs ./frontend to see if that makes any difference, but with little success.
Am I missing something, frontend frameworks are not my arena so I'm a fish out of water.
Thanks for the support,
Charlie.
edit: Scrap that last edit 😛. OS: macOS Monterey 12.1
Beta Was this translation helpful? Give feedback.
All reactions