ItsSpyce / dailies-tracker

72 stars 23 forks source link

App starts to blank page when not in dev mode #4

Closed justjustie closed 3 months ago

justjustie commented 3 months ago

Describe the bug Starting with 070040d at the latest, building and running the app starts it to a blank page only. It works when ran via npm run dev or wails dev.

To Reproduce Steps to reproduce the behavior:

  1. Build using wails build in packages/app
  2. Run packages\app\build\bin\Dailies Tracker.exe

Expected behavior App starts as usual, UI is shown

Desktop (please complete the following information):

Additional context Was not reproducible on go1.21.6 by @ItsSpyce, so maybe it's that

ItsSpyce commented 3 months ago

Was able to reproduce using the steps you provided! I'll take a look into it

ItsSpyce commented 3 months ago

After digging in further, it's something to do with styled-components not setting the theme properly. Will need to see if it's an issue with Vite or with how I setup the theme

ItsSpyce commented 3 months ago

Bug seems to be fixed as of the latest changes. I reverted styled-components down to a sticky version of 5 and it appears to have resolved it. Not sure if it's improperly setting the theme but the benefits from 6 don't really showcase here. @justjustie give it a try and let me know if it's still prevalent!

justjustie commented 3 months ago

Tested with 266ffd3, works as expected again!