“Cannot use import statement outside a module” error vs. “Unknown file extension ‘.ts'” error in ts-node
I was trying to execute the .ts
file by ts-node and got the following error:
I was trying to execute the .ts
file by ts-node and got the following error: