JavaScript runtime error: 'Promise' is undefined #1122

Closed
opened 2025-08-09 17:18:57 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @yonzo on 1/10/2017

When generating a solution running "yo aspnetcore-spa" and choosing:

  • Aurelia
  • project.json
  • "My project Name"

...a new application is generated for me.
I can start the application with "dotnet run", and all is good.

But when I open the solution in VS2015 and start the app in debug mode (F5), I get an error saying
Unhandled exception at line 695, column 3 in http://localhost:38523/dist/app.js
and
JavaScript runtime error: 'Promise' is undefined

I can click Continue and open the website as if nothing happened, but I'd really like to make that error go away for my own peace of mind.
Am I doing something wrong, or is it a bug in the template-files (if that's what their called)..?

Regards,
Jon S.

*Originally created by @yonzo on 1/10/2017* When generating a solution running "yo aspnetcore-spa" and choosing: - Aurelia - project.json - "My project Name" ...a new application is generated for me. I can start the application with "dotnet run", and all is good. But when I open the solution in VS2015 and start the app in debug mode (F5), I get an error saying _Unhandled exception at line 695, column 3 in http://localhost:38523/dist/app.js_ and _JavaScript runtime error: 'Promise' is undefined_ I can click _Continue_ and open the website as if nothing happened, but I'd really like to make that error go away for my own peace of mind. Am I doing something wrong, or is it a bug in the template-files (if that's what their called)..? Regards, Jon S.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1122
No description provided.