TypeScript doesn't recognise promises and dynamic imports
Hello, I'm having this problem - looks like typescript doesn't know about newer language features

What I tried:
Doing npm install -g @types/node
Changing typescript from bundled to locally installed one
Adding "--lib es2015" to my options, also added this to tsconfig.json in project folder
"lib": [
"es2015"
],

Also restarting IDE, typescript server etc..
Unfortunately the problem persists, I don't really know why
Please sign in to leave a comment.
Adding
to tsconfig.json should help
Make sure that the file the error is reported against is included in tsconfig.json you specified the option in