deepLink error

I’m trying to open specific URL into an ionic app…

The whole setup to open “general” URLs it’s done and running so good, but now the thing is about to open specific URLs.

I have this function in app.component.ts:

setupDeepLinks(){
    this.deepLinks.route({
      '/event-detail/:id':EventDetailPage,
      '/search':SearchPage
    }).subscribe(match => {
      alert(JSON.stringify(match));
    },noMatch => {
      alert(JSON.stringify(noMatch));
    });
  }

The entire info about this, says that this is the right way, even the official info from ionic deepLinking…

Opening the DevTools from Chrome I got this error, but I don’t know what to do…

I’m working with ionic6

Hi

Arent we supposed to setup deeplinks via routes in router modules? See HeroDetails in the angular.io tutorial

Btw, ionic framework is 5 max.