Home

Issue: 710

Routes generation params and redirects

[issue link]

Hi, guys!

I have two issues with routes:

  1. All parameters generated as optional, even with index.vue files
    pages:
    pages
    generated routes:
    routes

  2. extendRoutes option lead to empty import
    I’m trying to add redirects like:
    extendroutes
    and generated routes.js looks like:

const _29172c1a = () => import('' /* webpackChunkName: "pages/" */)
...
{
	path: "/icon",
	component: _29172c1a
},
{
	path: "/icon/new-icons",
	component: _29172c1a
}

and when I use ‘npm run dev’ I got:

This dependency was not found:
*  in ./.nuxt/router.js
To install it, you can run: npm install --save

Using nuxt 0.10.7

This question is available on Nuxt.js community (#c605)