I have been working as an Android dev for a few ye...
# kobweb
s
I have been working as an Android dev for a few years, but have 0 experience with web development. I am hoping to use my Kotlin knowledge and some good vibes to build pet projects kodee happy I just created a sample project (
kobweb create app
), did some minor updates and added configuration to build and deploy to GitHub Pages. This is not all I want to do, but first I would like to fix some simple issues. State such as color mode and menu state (when the available width is small) does not seem to work when the app is deployed, but it works when running it locally. Is this some kind of known issue?
1
l
When deploying to GitHub Pages, did you configure a basePath? This is required for Pages because it deploys your site under a subpath. You can also open developer tools to see if the console has any useful errors - what you describe sounds like the JS isn't being loaded.
👀 1
s
Thanks @Letter, that was it! pepe clap
kodee excited 2
d
I wonder if I should include logic in the index.html file to handle the case where the script isn't found (perhaps showing a simple error message pointing to the base path docs...?) 🤔
s
I would prefer to stick with the fail-silently approach of the web and not show tech specifics like docs to end users - the static content and most links will still work
1