1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Vercel / Angular - Getprerender params

Discussão em 'Angular' iniciado por Maria Rosa Bravo Gil, Julho 10, 2025.

  1. I'm trying to deploy my Angular project in Vercel and I keep getting this error message:

    ✘ [ERROR] The 'quote/:categoryId' route uses prerendering and includes parameters, but 'getPrerenderParams' is missing. Please define 'getPrerenderParams' function for this route in your server routing configuration or specify a different 'renderMode'.

    I've gone through my app.routes.ts several times and the problem is not persists.

    import { NgModule } from '@angular/core';
    import { RouterModule, Routes } from '@angular/router';
    import { HomeComponent } from './pages/home/home.component';
    import { QuoteComponent } from './pages/quote/quote.component';

    export const routes: Routes = [
    { path: '', component: HomeComponent },
    { path: 'quote/:categoryId', component: QuoteComponent },
    ];

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

    Continue reading...

Compartilhe esta Página