You might have noticed that sometimes when adding a new page, you get an incremental compilation error like "ThatNewPage does not exist" which does not go away until you sbt clean. This seems to be this bug In Scala 3. I made a small reproduction for it, so hopefully the fix is coming.
As a workaround, after you create a new Page, you need to save the pages.scala file BEFORE you use the page anywhere. Or, you can change JsRouter by removing the export of pages, and using Scala 2 patterns for that.
You might have noticed that sometimes when adding a new page, you get an incremental compilation error like "ThatNewPage does not exist" which does not go away until you sbt clean. This seems to be this bug In Scala 3. I made a small reproduction for it, so hopefully the fix is coming.
As a workaround, after you create a new Page, you need to save the pages.scala file BEFORE you use the page anywhere. Or, you can change JsRouter by removing the
export
of pages, and using Scala 2 patterns for that.