Error when adding slug routes


I’m trying to add slug routes in the index.stache

      {{#case "login"}}

      {{#case "clients"}}
        {{#routeCurrent slug='new'}}
          New page

      {{#case "settings"}}

I’m getting the following error in the console

Cannot read property 'add' of undefined

I’ve tried uncommenting the code and reverting back but I get on that error.


Hi @rehat101,

Could you post the stack trace where you see that error?

All the #case statements are inside of a #switch, right?