I'm doing again an online angular course because I'm a little bit rusty and following one of the first classes I got an error declaring an interface.
interface face{
name: string;
address: string;
}
I get this error Uncaught SyntaxError: unexpected token: identifier in firefox and chrome, but in a online editor my code works. I don't know which identifier is wrong, it could be a error because of a non updated version of something?
Edited: This is the html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Intro ducción</title>
</head>
<body>
<script src="app.ts"></script>
</body>
</html>
And this is the tsconfig.json
{
"compilerOptions": {
"target": "es2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
"strict": true, /* Enable all strict type-checking options. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
}
}