Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with prerender routes #287

Open
mojtabanpe opened this issue Nov 25, 2023 · 0 comments
Open

Incompatibility with prerender routes #287

mojtabanpe opened this issue Nov 25, 2023 · 0 comments

Comments

@mojtabanpe
Copy link

mojtabanpe commented Nov 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant