Good, dear.
I am using Visual Studio 2015 to program in C # and Angular 2, having made some updates the following error started to appear (Sensitive values are changed by XYZ):
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: \ dev \ XXX \ Utilities \ YYY \ node_modules \ zone.js \ dist \ zone-node.js: 38: 23) at new NgZoneImpl (C: \ dev \ XXX \ Utilities \ YYY \ node_modules \ @angular \ core \ bundles \ core.umd.js: 6219: 18) at new NgZone (C: \ dev \ XXX \ Utilities \ YYY \ node_modules \ @angular \ core \ bundles \ core.umd.js: 6368: 30) at PlatformRef _._ bootstrapModuleFactoryWithZone (C: \ dev \ XXX \ Utilities \ YYY \ node_modules \ @angular \ core \ bundles \ core.umd.js: 6913: 26) at PlatformRef_.bootstrapModuleFactory (C: \ dev \ XXX \ Utilities \ YYY \ node_modules \ @angular \ core \ bundles \ core.umd.js: 6904: 25) at NodePlatform.bootstrapModule (C: \ dev \ XXX \ Utilities \ YYY \ node_modules \ angular2-platform-node \ node-platform.js: 426: 37) at NodePlatform.serializeModule (C: \ dev \ XXX \ Utilities \ YYY \ node_modules \ angular2-platform-node \ node-platform.js: 108: 22) at C: \ dev \ XXX \ Utilities \ YYY \ ClientApp \ dist \ main-server.js: 74: 63 at ZoneDelegate.invoke (C: \ dev \ XXX \ Utilities \ YYY \ node_modules \ zone.js \ dist \ zone-node.js: 232: 26) at Zone.run (C: \ dev \ XXX \ Utilities \ YYY \ node_modules \ zone.js \ dist \ zone-node.js: 114: 43)
Does anyone present or present the same error?
Reading on the internet, I found that changing the declaration line of zone.js solved the conflict, but unfortunately I could not solve it in this way.
Thank you very much from now.
Edit: I enclose the packages.json file, which contains node dependencies.
{ "name": "Angular2Spa", "version": "0.0.0", "dependencies": { "@ angular / common": "2.0.0", "@ angular / compiler": "2.0.0", "@ angular / core": "2.0.0", "@ angular / forms": "2.0.0", "@ angular / http": "2.0.0", "@ angular / platform-browser": "2.0.0", "@ angular / platform-browser-dynamic": "2.0.0", "@ angular / platform-server": "2.0.0", "@ angular / router": "3.0.0", "@ types / node": "^ 6.0.38", "angular2-platform-node": "~ 2.0.10", "angular2-universal": "~ 2.0.10", "angular2-universal-polyfills": "~ 2.0.10", "aspnet-prerendering": "^ 1.0.6", "aspnet-webpack": "^ 1.0.11", "bootstrap": "^ 3.3.7", "css": "^ 2.2.1", "css-loader": "^ 0.25.0", "es6-shim": "^ 0.35.1", "expose-loader": "^ 0.7.1", "extract-text-webpack-plugin": "^ 1.0.1", "file-loader": "^ 0.9.0", "isomorphic-fetch": "^ 2.2.1", "jquery": "^ 2.2.1", "preboot": "^ 4.5.2", "raw-loader": "^ 0.5.1", "rxjs": "5.0.0-beta.12", "style-loader": "^ 0.13.0", "to-string-loader": "^ 1.1.5", "ts-loader": "^ 0.8.2", "typescript": "^ 2.0.0", "url-loader": "^ 0.5.7", "webpack": "^ 1.12.14", "webpack-externals-plugin": "^ 1.0.0", "webpack-hot-middleware": "^ 2.10.0", "webpack-merge": "^ 0.14.1", "zone.js": "^ 0.6.21", "ng2-file-upload": "1.1.4-2" } }