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:

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

Such declaration returns function rather than component

Solution here