Deeplinks: Lazy loading does not trigger event

While routing with the ionic deeplink plugin works fine with eager loading (i.e. new tab in browser or closed app), lazy loading does not do much except throwing an error. Although the plugin recognizes the deeplink (see console output below), it does not trigger the subscribe event.

Console output:

On deep link 
        url: "http://localhost:8000/index.html#/detail/123456", 
        path: "/index.html", 
        host: "localhost", 
        fragment: "#/detail/123456"
ERROR Error: Uncaught (in promise): invalid views to insert
    at c (polyfills.js:3)
    at Object.reject (polyfills.js:3)
    at NavControllerBase._fireError (nav-controller-base.js:223)
    at NavControllerBase._failed (nav-controller-base.js:216)
    at nav-controller-base.js:263
    at t.invoke (polyfills.js:3)
    at Object.onInvoke (core.js:4629)
    at t.invoke (polyfills.js:3)
    at (polyfills.js:3)
    at polyfills.js:3


     '/detail/:id': 'details'
}).subscribe((match) => {
    console.log('does not print to console');
}, (nomatch) => {
    console.log('neither does this');

This plugin is not being maintained by the Ionic team. we recommend using Branch metrics for handling deeplinks: