Skip to content

Incompatibility with prerender routes #287

@mojtabanpe

Description

@mojtabanpe

Describe the bug
If we use prerender and routesFile in angular.json REQUEST token hasn't provided.

To Reproduce
Steps to reproduce the behavior:

  1. Go to angular.json
  2. Setup "prerender": {
    "discoverRoutes": false,
    "routesFile": "routes.txt"
    },
  3. Provide routes.txt beside angular.json
  4. Try to build and See error

An unhandled exception occurred: R3InjectorError(Standalone[o])[o -> o -> InjectionToken REQUEST -> InjectionToken REQUEST]:
NullInjectorError: No provider for InjectionToken REQUEST!
See "/tmp/ng-SbxhnB/angular-errors.log" for further details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions