Closed sparecycles closed 8 months ago
repl, semicolon
Works in NodeJS native REPL
weird error message is printed.
<repl>.ts:3 export {}; ^^^^^^ Uncaught SyntaxError: Unexpected token 'export'
npx ts-node
console.log('hi');
{ "compilerOptions": { "module": "esnext" } }
{}
duplicate
Search Terms
repl, semicolon
Expected Behavior
Works in NodeJS native REPL
Actual Behavior
weird error message is printed.
Steps to reproduce the problem
npx ts-node
console.log('hi');
and hit enter.Specifications