Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao compilar

Olá, Alguém poderia me ajudar com este erro?

arquivo tsconfig.json:

{
    "compilerOPtions":{
        "target": "es6",
        "outDir": "app/js"
    },
    "include":[
        "app/ts/**/*"
    ]
}

Erro ao compilar:

alurabank$ npm run compile

> alurabank@1.0.0 compile /home/marcelo/Desktop/alura-angular/alurabank
> tsc

app/ts/app.ts(1,20): error TS2346: Supplied parameters do not match any signature of call target.
app/ts/models/Negociacao.ts(13,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
app/ts/models/Negociacao.ts(17,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
app/ts/models/Negociacao.ts(21,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
app/ts/models/Negociacao.ts(25,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.

npm ERR! Linux 5.0.0-32-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "compile"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! alurabank@1.0.0 compile: `tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the alurabank@1.0.0 compile script 'tsc'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the alurabank package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs alurabank
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls alurabank
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/marcelo/Desktop/alura-angular/alurabank/npm-debug.log
1 resposta
solução!

Esta dúvida foi criada por mim no OFF-topic por descuido, ja a criei no fórum relacionado ao curso de angular, muito obrigado e bom dia.