5
respostas

Ficou tudo branco.

Uncaught Error: Template parse errors:
The pipe 'async' could not be found ("
        <a class="navbar-brand">ALURAPIC</a>

        <div *[ERROR ->]ngIf="(user$ | async) as user; else login">
        <i class="fa fa-user-circle"></i>
        <a cl"): ng:///CoreModule/HeaderComponent.html@4:14
Can't bind to 'ngIf' since it isn't a known property of 'div'. ("
        <a class="navbar-brand">ALURAPIC</a>

        <div [ERROR ->]*ngIf="(user$ | async) as user; else login">
        <i class="fa fa-user-circle"></i>
        <a c"): ng:///CoreModule/HeaderComponent.html@4:13
Can't bind to 'ngIfElse' since it isn't a known property of 'div'. ("
        <a class="navbar-brand">ALURAPIC</a>

        <div [ERROR ->]*ngIf="(user$ | async) as user; else login">
        <i class="fa fa-user-circle"></i>
        <a c"): ng:///CoreModule/HeaderComponent.html@4:13
Property binding ngIf not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations". ("
        <a class="navbar-brand">ALURAPIC</a>

        [ERROR ->]<div *ngIf="(user$ | async) as user; else login">
        <i class="fa fa-user-circle"></i>
       "): ng:///CoreModule/HeaderComponent.html@4:8
Property binding ngIfElse not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations". ("
        <a class="navbar-brand">ALURAPIC</a>

        [ERROR ->]<div *ngIf="(user$ | async) as user; else login">
        <i class="fa fa-user-circle"></i>
       "): ng:///CoreModule/HeaderComponent.html@4:8
    at syntaxError (compiler.js:1021)
    at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:14830)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:24018)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:24005)
    at compiler.js:23948
    at Set.forEach (<anonymous>)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
    at compiler.js:23858
    at Object.then (compiler.js:1012)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)
5 respostas

Fala ai Amanda, tudo bem? Olhando os códigos é bem complicado achar o problema, posso deixar passar algum detalhe.

Posso te pedir um favor? Compartilha o projeto completo comigo, assim eu consigo simular o problema e analisar com mais calma.

Pode compartilhar através do Github ou Google Drive (zipado).

Fico no aguardo.

Não sei, fazer isso .-.

Fala Amanda, você precisa pegar a pasta do projeto e compactar ela, se estiver usando Windows, clica com o botão direito sobre ela e depois vai em "Comprimir para zip" (algo assim).

Dai, caso tenha conta na Google (gmail por exemplo), você pode utilizar o Google Drive: https://drive.google.com/ para subir o arquivo .zip nele.

Depois, me manda o link de compartilhamento do arquivo para eu baixar por aqui.

Espero ter ajudado.

´´´´ Angular is running in the development mode. Call enableProdMode() to enable the production mode. core.js:1673 ERROR Error: Uncaught (in promise): Error: The requested path contains undefined segment at index 1 Error: The requested path contains undefined segment at index 1 at validateCommands (router.js:4101) at Router.push../nodemodules/@angular/router/fesm5/router.js.Router.navigate (router.js:3637) at AuthGuard../src/app/core/auth/auth.guard.ts.AuthGuard.canActivate (auth.guard.ts:19) at MapSubscriber.project (router.js:2799) at MapSubscriber.push../nodemodules/rxjs/esm5/internal/operators/map.js.MapSubscriber.next (map.js:75) at MapSubscriber.push../node_modules/rxjs/esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:93) at Observable.subscribe (subscribeToArray.js:9) at Observable.push../node_modules/rxjs/esm5/internal/Observable.js.Observable.subscribe (Observable.js:161) at MapOperator.push../nodemodules/rxjs/esm5/internal/operators/map.js.MapOperator.call (map.js:51) at Observable.push../nodemodules/rxjs/esm5/internal/Observable.js.Observable.subscribe (Observable.js:158) at resolvePromise (zone.js:831) at resolvePromise (zone.js:788) at zone.js:892 at ZoneDelegate../nodemodules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423) at Object.onInvokeTask (core.js:3811) at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:422) at Zone../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195) at drainMicroTaskQueue (zone.js:601) defaultErrorLogger @ core.js:1673 client:52 [WDS] Live Reloading enabled. client:52 [WDS] Live Reloading enabled. client:52 [WDS] Live Reloading enabled. client?719c:52 [WDS] Live Reloading enabled. 3core.js:1673 ERROR Error: Uncaught (in promise): Error: The requested path contains undefined segment at index 1 Error: The requested path contains undefined segment at index 1 at validateCommands (router.js:4101) at Router.push../nodemodules/@angular/router/fesm5/router.js.Router.navigate (router.js:3637) at AuthGuard../src/app/core/auth/auth.guard.ts.AuthGuard.canActivate (auth.guard.ts:19) at MapSubscriber.project (router.js:2799) at MapSubscriber.push../nodemodules/rxjs/esm5/internal/operators/map.js.MapSubscriber.next (map.js:75) at MapSubscriber.push../node_modules/rxjs/esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:93) at Observable.subscribe (subscribeToArray.js:9) at Observable.push../node_modules/rxjs/esm5/internal/Observable.js.Observable.subscribe (Observable.js:161) at MapOperator.push../nodemodules/rxjs/esm5/internal/operators/map.js.MapOperator.call (map.js:51) at Observable.push../nodemodules/rxjs/esm5/internal/Observable.js.Observable.subscribe (Observable.js:158) at resolvePromise (zone.js:831) at resolvePromise (zone.js:788) at zone.js:892 at ZoneDelegate../nodemodules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423) at Object.onInvokeTask (core.js:3811) at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:422) at Zone../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195) at drainMicroTaskQueue (zone.js:601) at ZoneTask../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (zone.js:502) at invokeTask (zone.js:1744) defaultErrorLogger @ core.js:1673 DevTools failed to load SourceMap: Could not load content for http://localhost:4200/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE ´´´´

Fala Amanda, poxa, ai fica bem complicado eu conseguir te ajudar, olhando apenas os códigos eu posso deixar passar varios detalhes facilmente.

Porém, com o projeto e vendo o problema, fica bem mais simples e fácil.

Mas, olhando o erro:

Error: The requested path contains undefined segment at index 1

É porque você tentou acessar uma rota que espera receber um parâmetro, mas, esse parâmetro não foi informado ou foi informado undefined (verifica na URL se está undefined).

Abraços.