Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

332
Views
Javascript await/async keywords shows error in Visual Studio 2015

When writing Javascript in a Web application in Visual Studio 2015, the async and await keywords are marked as error. For example:

const response = await fetch(url, options);

This is how it looks like in VS2015:

Syntax Errro of await keyword in VS2015

Here, await is marked in red indicating a syntax error. This happens in Javascript files and in script elements in html or ASPX pages. All code actually works: I've been succesfully using async/await for a few months so far. The only problem is that Visual Studio formating/code collapsing fails because of the "error", and always show the annoying red marks.

I tried tweaking some TypeScript options (I even updated Typescript support), but we are using Javascript heavily (migrating to TypeScript is not an option), so it probably wont work anyway. I found out that I can add "javascript reference files" to visual studio (Options > Javascript > Intellisense), but couldn't find a proper reference to add support for async/await, and probably others newer javascript caracteristicts.

Right now I can't get a newer version of Visual Studio (I'm one of many developers in the same project).

Additional info: This is a web application project (It is an ~8yo project in continuous development). Mostly ASP.NEt + VB.NET, there is a lot of client side Javascript (both vanilla and jQuery) executed only in Browser (no NodeJS).

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!