AhsanAyaz / AhsanAyaz/ngx-device-detector

Incompatibility with prerender routes

Aperta
#287 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
559
Fork
106
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.