Hi,
routes: [
{
path: ‘/about/’,
component: About,
},
{
name:‘about2’,
path: ‘/about2/’,
url: ‘./pages/about.html’,
},
],
about2 never loads: I just have pageInit event and I see the transition effect.
Whatever is the url, I got the same result. I tried almost every possibility.
Now I also have a problem with about component loading
import About from ‘…/pages/about.html’;
about gives me error:
parse-component.js:14 Uncaught (in promise) TypeError: Cannot read property ‘2’ of null
at parseComponent (parse-component.js:14)
at Object.parse (component.js:27)
at component-loader.js:69
const templateType = hasTemplate[2] || ‘t7’;
Any idea ?
PS. I use parceljs
When using webpack (from f7-cli, I got that error in console:
http://localhost:8080/pages/about.f7.html 404 not found
Looks like webpack needs some extra configuration to load pages. Is there are sample included somewhere ?