简体   繁体   中英

Default angular project template from Visual Studio fails with exception unhandled on first run

I just created a new asp.net core app with an angular template and when I started it I received an exception

  • JavaScript runtime error: Unable to get property 'apply' of undefined or null reference

on this line

function combine(options) {
   return ((Object)).assign.apply(((Object)), [{}].concat(options));}

in the vendor.js file

anybody know why or how to fix it? Should I have an exception thrown on a default project template like this?

Try to avoid using VS Angular template, as it doesn't provide best experience for Angular app setup.You can follow steps in this article or create empty ASP.NET Web API project, install Node.js & Angular-Cli. Then you can run 'npm i npm' and 'ng new myAppName' in project's root directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM