Skip to content

SSR build: Routes extraction was aborted. #34148

Description

@GipHub123

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

I tried to migrate from CommonEngine to AngularNodeAppEngine.

  1. The CommonEngine build completes without any errors.
Prerendered 1 static route.
Application bundle generation complete. [121.080 seconds] - 2026-09-23T06:59:53.658Z

Output location: C:\angular\frontend\dist\project
  1. I made the needed changes (removed CommonEngine) to the server.ts -file -> ng build -> I got this error message.
chunk-VHBGQMTA.mjs   | -                                 |  53.81 kB |
chunk-LNYR4NF6.mjs   | -                                 |  44.85 kB |
chunk-LQSQKM72.mjs   | -                                 |  43.17 kB |
chunk-RTM2IISS.mjs   | -                                 |  38.13 kB |
chunk-REZYB5B6.mjs   | -                                 |  32.01 kB |
chunk-6GOXTYWK.mjs   | -                                 |  31.59 kB |
chunk-F3E53472.mjs   | -                                 |  29.18 kB |
chunk-NU5CNSMJ.mjs   | industry-classification-component |  28.76 kB |
...and 359 more lazy chunks files. Use "--verbose" to show all the files.

Prerendered 0 static routes.
Application bundle generation failed. [103.515 seconds] - 2026-09-23T06:34:16.479Z

X [ERROR] An error occurred while extracting routes.

AbortError: Routes extraction was aborted.
TimeoutError: The operation was aborted due to timeout
    at new DOMException (node:internal/per_context/domexception:76:18)
    at AbortSignal.s (file:///C:/angular/frontend/.angular/prerender-root/ee1dbdaa-99fb-4f71-99f5-028ce730198c/main.server.mjs:47:4586)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:843:20)
    at AbortSignal.dispatchEvent (node:internal/event_target:776:26)
    at runAbort (node:internal/abort_controller:547:10)
    at abortSignal (node:internal/abort_controller:518:3)
    at Timeout._onTimeout (node:internal/abort_controller:208:7)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
  1. Tested with angular default server.ts file (same server.ts file that is generated with "ng new new-project --ssr" -command -> Same error
  2. Tested with empty server routes -> same error.

export const ROUTES_SERVER: ServerRoute[] = [
];

Minimal Reproduction

Exception or Error

chunk-REZYB5B6.mjs   | -                                 |  32.01 kB |
chunk-6GOXTYWK.mjs   | -                                 |  31.59 kB |
chunk-F3E53472.mjs   | -                                 |  29.18 kB |
chunk-NU5CNSMJ.mjs   | industry-classification-component |  28.76 kB |
...and 359 more lazy chunks files. Use "--verbose" to show all the files.

Prerendered 0 static routes.
Application bundle generation failed. [103.515 seconds] - 2026-09-23T06:34:16.479Z

X [ERROR] An error occurred while extracting routes.

AbortError: Routes extraction was aborted.
TimeoutError: The operation was aborted due to timeout
    at new DOMException (node:internal/per_context/domexception:76:18)
    at AbortSignal.s (file:///C:/angular/frontend/.angular/prerender-root/ee1dbdaa-99fb-4f71-99f5-028ce730198c/main.server.mjs:47:4586)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:843:20)
    at AbortSignal.dispatchEvent (node:internal/event_target:776:26)
    at runAbort (node:internal/abort_controller:547:10)
    at abortSignal (node:internal/abort_controller:518:3)
    at Timeout._onTimeout (node:internal/abort_controller:208:7)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)

Your Environment

$ ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI       : 22.1.8
Angular           : 22.1.7
Node.js           : 24.18.1
Package Manager   : npm 11.16.0
Operating System  : win32 x64

┌────────────────────────────────────┬───────────────────┬───────────────────┐
│ Package                            │ Installed Version │ Requested Version │
├────────────────────────────────────┼───────────────────┼───────────────────┤
│ @angular/build                     │ 22.1.8            │ ^22.1.8           │
│ @angular/cdk                       │ 22.1.7            │ ~22.1.7           │
│ @angular/cli                       │ 22.1.8            │ ~22.1.8           │
│ @angular/common                    │ 22.1.7            │ ~22.1.7           │
│ @angular/compiler                  │ 22.1.7            │ ~22.1.7           │
│ @angular/compiler-cli              │ 22.1.7            │ ~22.1.7           │
│ @angular/core                      │ 22.1.7            │ ~22.1.7           │
│ @angular/forms                     │ 22.1.7            │ ~22.1.7           │
│ @angular/google-maps               │ 22.1.7            │ ~22.1.7           │
│ @angular/language-service          │ 22.1.7            │ ~22.1.7           │
│ @angular/material                  │ 22.1.7            │ ~22.1.7           │
│ @angular/material-date-fns-adapter │ 22.1.7            │ ~22.1.7           │
│ @angular/platform-browser          │ 22.1.7            │ ~22.1.7           │
│ @angular/platform-server           │ 22.1.7            │ ~22.1.7           │
│ @angular/router                    │ 22.1.7            │ ~22.1.7           │
│ @angular/ssr                       │ 22.1.8            │ ~22.1.8           │
│ @angular/youtube-player            │ 22.1.7            │ ~22.1.7           │
│ rxjs                               │ 7.8.2             │ 7.8               │
│ typescript                         │ 6.0.3             │ ~6.0.3            │
│ vitest                             │ 5.0.1             │ ^5.0.1            │

Anything else relevant?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @angular/ssrgemini-triagedLabel noting that an issue has been triaged by geminineeds: repro stepsWe cannot reproduce the issue with the information given

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions