1
resposta

Como gerar arquivos .js e js.map??

O seguinte erro aparece no console:

Unhandled Promise rejection: Template parse errors:
Can't bind to 'titulo' since it isn't a known property of 'painel'. ("
</div>
<div class="container">
    <painel *ngFor="let foto of fotos" [ERROR ->]titulo="{{foto.titulo}}" url="{{foto.url}}">
        <foto titulo={{foto.titulo}} url="foto.url"></fo"): AppComponent@4:39
Can't bind to 'url' since it isn't a known property of 'painel'. ("
</div>
<div class="container">
    <painel *ngFor="let foto of fotos" titulo="{{foto.titulo}}" [ERROR ->]url="{{foto.url}}">
        <foto titulo={{foto.titulo}} url="foto.url"></foto>
    </painel>
"): AppComponent@4:64
'painel' is not a known element:
1. If 'painel' is an Angular component, then verify that it is part of this module.
2. If 'painel' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("
</div>
<div class="container">
    [ERROR ->]<painel *ngFor="let foto of fotos" titulo="{{foto.titulo}}" url="{{foto.url}}">
        <foto titulo="): AppComponent@4:4 ; Zone: <root> ; Task: Promise.then ; Value: Error: Template parse errors:
Can't bind to 'titulo' since it isn't a known property of 'painel'. ("
</div>
<div class="container">
    <painel *ngFor="let foto of fotos" [ERROR ->]titulo="{{foto.titulo}}" url="{{foto.url}}">
        <foto titulo={{foto.titulo}} url="foto.url"></fo"): AppComponent@4:39
Can't bind to 'url' since it isn't a known property of 'painel'. ("
</div>
<div class="container">
    <painel *ngFor="let foto of fotos" titulo="{{foto.titulo}}" [ERROR ->]url="{{foto.url}}">
        <foto titulo={{foto.titulo}} url="foto.url"></foto>
    </painel>
"): AppComponent@4:64
'painel' is not a known element:
1. If 'painel' is an Angular component, then verify that it is part of this module.
2. If 'painel' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("
</div>
<div class="container">
    [ERROR ->]<painel *ngFor="let foto of fotos" titulo="{{foto.titulo}}" url="{{foto.url}}">
        <foto titulo="): AppComponent@4:4
    at TemplateParser.parse (compiler.umd.js:8530)
    at RuntimeCompiler._compileTemplate (compiler.umd.js:16905)
    at eval (compiler.umd.js:16828)
    at Set.forEach (<anonymous>)
    at compile (compiler.umd.js:16828)
    at ZoneDelegate.invoke (zone.js:192)
    at Zone.run (zone.js:85)
    at zone.js:451
    at ZoneDelegate.invokeTask (zone.js:225)
    at Zone.runTask (zone.js:125) Error: Template parse errors:
Can't bind to 'titulo' since it isn't a known property of 'painel'. ("
</div>
<div class="container">
    <painel *ngFor="let foto of fotos" [ERROR ->]titulo="{{foto.titulo}}" url="{{foto.url}}">
        <foto titulo={{foto.titulo}} url="foto.url"></fo"): AppComponent@4:39
Can't bind to 'url' since it isn't a known property of 'painel'. ("
</div>
<div class="container">
    <painel *ngFor="let foto of fotos" titulo="{{foto.titulo}}" [ERROR ->]url="{{foto.url}}">
        <foto titulo={{foto.titulo}} url="foto.url"></foto>
    </painel>
"): AppComponent@4:64
'painel' is not a known element:
1. If 'painel' is an Angular component, then verify that it is part of this module.
2. If 'painel' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("
</div>
<div class="container">
    [ERROR ->]<painel *ngFor="let foto of fotos" titulo="{{foto.titulo}}" url="{{foto.url}}">
        <foto titulo="): AppComponent@4:4
    at TemplateParser.parse (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:8530:21)
    at RuntimeCompiler._compileTemplate (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:16905:53)
    at eval (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:16828:85)
    at Set.forEach (<anonymous>)
    at compile (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:16828:49)
    at ZoneDelegate.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:192:28)
    at Zone.run (http://localhost:3000/node_modules/zone.js/dist/zone.js:85:43)
    at http://localhost:3000/node_modules/zone.js/dist/zone.js:451:57
    at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:225:37)
    at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:125:47)
1 resposta

Icaro, me parece um problema no componente de Painel, você tem como disponibilizar seu projeto no GitHub pra gente ver e testar?

Outra coisa, sua pergunta é sobre o .js e .map ou sobre o erro, o tópico ficou um pouco confuso.