Navigation error

Chrome reports: Reason: Error: Cannot find module ‘./home.vue’.
when I try to use a function to import components in my routes.js, like so:

function load (component) {
// ‘@’ is aliased to src/components
return () => import(@/${component}.vue)
}

export default [
// “home.vue” is in “components” folder.
{ path: ‘/’, id: ‘home’, component: load(‘home’), }, etc…

My app.vue looks like this:

template
div id=“app"
f7-view id=“main-view” url=”/" main />"
etc…

Such declaration returns function rather than component

Solution here https://github.com/framework7io/framework7-vue/issues/362#issuecomment-365972797