I just migrated to the latest kobweb version, now ...
# kobweb
a
I just migrated to the latest kobweb version, now the issue i am facing is the routes i setup in the previous kobweb version i am not able to change it anymore, means if I change the route name it reflects in the main.kt that it's changed but while running the kobweb it uses same route name which i used before migrating. Any solution?
d
You might be getting hit by a bad KSP bug.
Try setting
ksp.incremental=false
in your
gradle.properties
If this fixes your issue, please consider subscribing to / adding a thumbs up to https://github.com/google/ksp/issues/2252
However you might be talking about something else, I'm not sure, so if that doesn't help you, let me know.
a
For example i set the route as - /test/test-preparation
but if i am accessing in chrome it's showing error code: 404
d
If your
main.kt
is correct then it's not the KSP issue (that's good)
But are you sure you are going to the right URL? Is it port 8080?
a
previously it was /test-preparation, and it is still working on this same route(/test-preparation) not with the updated one which i changed
no its localhost:80
d
Did you change the port yourself in the conf.yaml file?
a
yes i changed there
d
Pretty sure 80 is reserved
I would change it back to 8080
a
i changed back to 8080 but still the issue is same
d
OK
Can you share your project? This is the first time I've heard of routes not working
a
check it
d
Future advice before sharing zips -- run
./gradlew clean
on them before zipping 🙂
I have downloaded the zip in case you wanted to delete it
e: Your .kobweb/conf.yaml dev script ("build/dist/js/developmentExecutable/vminds.js") could not be found. This will cause the page to fail to load with a 500 error. Perhaps search your build/ directory for "vminds.js" to find the right path.
Here, use this:
I'm guessing you haven't updated Kobweb in a while
At one point (a while back I think now?) the Kotlin multiplatform Gradle plugin changed where it output the JS file
so after upgrading, you have been loading a stale build
a
Oh shit😂
d
Because I did a clean before building, I got the error message. But yeah, hard information to surface!
a
I also just found after sending you the file i did that and facing the same issue in conf.yaml file
👍 1
d
I mean I get it. You updated the version and everything broke!
But fortunately it looks like after that change, everything is working now
a
Really helpful, thanks
d
Your site looks great btw!
a
Yeah its working fine now
d
Great home page
a
Actually i was testing
its not completed
d
Glad you're fixed (and glad it wasn't the KSP issue, we're hoping that won't affect almost every user)
a
I hope you have seen my project. I would love to hear any suggestions you might have for me.
d
I'm afraid I'm way too overcommitted at the moment to offer much feedback. However, you are certainly welcome to create a thread here or on the Discord asking for advice / feedback there.
a
Okay got it sure👍