Scully: Routing problem

Created on 1 Jun 2020  路  5Comments  路  Source: scullyio/scully

馃悶 Bug report

Scully just finds, one route not others,

question

Most helpful comment

Did you add the second route later on? did you try running npm run scully -- --scanRoutes?

All 5 comments

Hello, please provide further information in order to help you :

  • the steps you used
  • a repo to the project to test it

Closing due to inactivity

Hi, I'm facing the same issue. The way I'm using it is according to getting started page https://scully.io/docs/getting-started/.

Here is my AppRoutingModule

```
const routes: Routes = [
{ path: '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule) },
{ path: 'docs', loadChildren: () => import('./docs/docs.module').then(m => m.DocsModule) },
];

@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
````

and this is my scully config
import { ScullyConfig } from '@scullyio/scully'; export const config: ScullyConfig = { projectRoot: './src', projectName: 'TestScully', outDir: './dist/static', routes: { docs: { type: 'default' } } };
However, there is only one route showing in scully-routes.json and im not able to access /docs page.

Can you reopen this issue? Or briefly guide us through this?

Did you add the second route later on? did you try running npm run scully -- --scanRoutes?

Thank you @SanderElias! it works!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nishimura-yuji picture nishimura-yuji  路  4Comments

puku0x picture puku0x  路  4Comments

BlindDespair picture BlindDespair  路  5Comments

Gyrosh picture Gyrosh  路  5Comments

samvloeberghs picture samvloeberghs  路  6Comments