Error when adding slug routes


#1

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


      {{#case "login"}}
        <nl-login/>
      {{/case}}

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

      {{#case "settings"}}
        <nl-settings/>
      {{/case}}

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.


#2

Hi @rehat101,

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

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