Error building sample app #1226

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

Originally created by @alcohen on 11/29/2016

I followed Steve Sanderson's very nice article "ASP.NET Core + Angular 2 template for Visual Studio". Everything seems OK, but when I try to run the project it complains and refuses to run (see stack trace below). So I'm filing an issue here as suggested in the article. Thanks!


An unhandled exception occurred while processing the request.

Exception: Call to Node module failed with error: Error: Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten.
Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)
at Function.Zone.assertZonePatched (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\zone.js\dist\zone-node.js:38:23)
at new NgZoneImpl (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules@angular\core\bundles\core.umd.js:6219:18)
at new NgZone (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules@angular\core\bundles\core.umd.js:6368:30)
at PlatformRef_.bootstrapModuleFactoryWithZone (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules@angular\core\bundles\core.umd.js:6913:26)
at PlatformRef
.bootstrapModuleFactory (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules@angular\core\bundles\core.umd.js:6904:25)
at C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\angular2-platform-node\node-platform.js:439:38
at tryCatch (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\aspnet-prerendering\node_modules\es6-promise\dist\es6-promise.js:410:12)
at invokeCallback (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\aspnet-prerendering\node_modules\es6-promise\dist\es6-promise.js:425:13)
at publish (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\aspnet-prerendering\node_modules\es6-promise\dist\es6-promise.js:393:7)
at flush (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\aspnet-prerendering\node_modules\es6-promise\dist\es6-promise.js:121:5)

*Originally created by @alcohen on 11/29/2016* I followed Steve Sanderson's very nice article "ASP.NET Core + Angular 2 template for Visual Studio". Everything seems OK, but when I try to run the project it complains and refuses to run (see stack trace below). So I'm filing an issue here as suggested in the article. Thanks! --------------------------------------------- An unhandled exception occurred while processing the request. Exception: Call to Node module failed with error: Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten. Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.) at Function.Zone.assertZonePatched (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\zone.js\dist\zone-node.js:38:23) at new NgZoneImpl (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\@angular\core\bundles\core.umd.js:6219:18) at new NgZone (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\@angular\core\bundles\core.umd.js:6368:30) at PlatformRef_._bootstrapModuleFactoryWithZone (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\@angular\core\bundles\core.umd.js:6913:26) at PlatformRef_.bootstrapModuleFactory (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\@angular\core\bundles\core.umd.js:6904:25) at C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\angular2-platform-node\node-platform.js:439:38 at tryCatch (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\aspnet-prerendering\node_modules\es6-promise\dist\es6-promise.js:410:12) at invokeCallback (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\aspnet-prerendering\node_modules\es6-promise\dist\es6-promise.js:425:13) at publish (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\aspnet-prerendering\node_modules\es6-promise\dist\es6-promise.js:393:7) at flush (C:\Users\Alan\Source\Repos\Angular2ApplicationTest\Angular2ApplicationTest\node_modules\aspnet-prerendering\node_modules\es6-promise\dist\es6-promise.js:121:5)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1226
No description provided.