Mailmunch Popup - Uncaught (in promise): invalid views to insert

Hi,

I need to insert a popup in my pwa, this is what I am doing:

<a href="#mailmunch-pop-123456">Subscribe</a>

But when I try I am getting this error: Uncaught (in promise): invalid views to insert

Any help, please?

What is this “Mailmunch Popup” you mention?

I only see a link with a href to an anchor. This surely doesn’t throw an error about an uncaught promise.

Yes, the problem was to execute a route like: http://localhost:8100/#mailmunch-pop-123456

After add the route in my app.module.ts:

imports: [
BrowserModule,
HttpModule,
IonicModule.forRoot(MyApp, {}, {
  links: [
    { component: HomePage, segment: 'mailmunch-pop-123456', name: 'mailmunch-pop-123456' },
  ]
})
],

Now it’s ok.

Thanks.

@Sujan12 Mailmunch is an hybrid email marketing provider, similar to SumoMe, or ConvertKit, and a few others, that rely on ajax style iframes most often.