0
My code in the file Say.ts:
function say(person) {
return "Hello" + person;
}
var user = "Gabriel Lemos";
console.log(say(user));
When I tried to compile:
Tsc Say.ts
I had error: path Say.js(1,1): error TS5011: Emit Error: Failed to write to file..
Have you tried again? This is a flaw in the environment not in the code.
– Maniero
I tried Vscode, tried running Tsc by cmd, powershell. I don’t know how to try to compile
– Gabriel Lemos
You have permission to save?
– adventistaam
It was really missing permission, I changed the file path to Downloads and compiled correctly.
– Gabriel Lemos