After running the command tsc app.ts
, an error occurs showing:
Error TS2583: 'Map' is not recognized. Should the target library be changed? Consider updating the lib compiler option to es2015 or newer.
I want the code to compile without any issues and for the import statement to work correctly.