view-model.mjs:25 Uncaught (in promise) ReferenceError: regeneratorRuntime is not defined
at eval (view-model.mjs:25)
at AppViewModel{}'s componentToShow getter (view-model.mjs:25)
at Observation.onBound (can-observation.js:86)
at KeyTree.add (can-key-tree.js:140)
at Observation.on (value.js:35)
at Object.eval [as onValue] (observe.js:25)
at Function.temporarilyBind (temporarily-bind.js:23)
at AppViewModel.get AppViewModel{}.componentToShow (can-define.js:780)
at AppViewModel.getKeyValue (map.js:58)
at Object.getKeyValue (get-set.js:80)
async function returnModule(page ,viewModel) {
setTitle(`doorly - ${page} Page`);
return import(`/components/page-${page}`)
.then((m)=> new m.default(viewModel))
.catch(e=>{
setTitle( 'doorly - ERROR Page');
// eslint-disable-next-line no-console
console.error(e);
return Promise.resolve(page404);
});
}