Uncaught (in promise) TypeError: window[callbackCreateName] is not a function at parseComponent

I’m currently working on an electron project and each time I specify my page componentUrl property in routes file, I get this error below:
"Uncaught (in promise) TypeError: window[callbackCreateName] is not a function
at parseComponent
.
But then when I use url property to define the path of the page content, it works fine.

Interestingly, since I generated the boilerplate using the F7-cli, you get the same error when you click on the Request Data and Load button on the index page of the boilerplate.

The question is how do I get component templates to be working as routes instead of the normal url property of the routes object.