Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/331.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Visual Studio 2017中的ASP.NET Core Angular模板无法使用“生成”;SyntaxError:意外标记“;_C#_Asp.net_Angularjs_Asp.net Core_Visual Studio 2017 - Fatal编程技术网

C# Visual Studio 2017中的ASP.NET Core Angular模板无法使用“生成”;SyntaxError:意外标记“;

C# Visual Studio 2017中的ASP.NET Core Angular模板无法使用“生成”;SyntaxError:意外标记“;,c#,asp.net,angularjs,asp.net-core,visual-studio-2017,C#,Asp.net,Angularjs,Asp.net Core,Visual Studio 2017,在Visual Studio 2017(企业版)中使用Angular ASP.NET核心Web应用程序模板创建的新项目未生成。到目前为止,我已经在两台机器上复制了这个。生成输出如下所示: 1>Performing first-run Webpack build... 1>C:\git\zoeri\zoeri-azure-graphs\samples\Zoeri.Azure.Graphs.Sample.Web\node_modules\webpack\bin\webpack.js:18

在Visual Studio 2017(企业版)中使用Angular ASP.NET核心Web应用程序模板创建的新项目未生成。到目前为止,我已经在两台机器上复制了这个。生成输出如下所示:

1>Performing first-run Webpack build...
1>C:\git\zoeri\zoeri-azure-graphs\samples\Zoeri.Azure.Graphs.Sample.Web\node_modules\webpack\bin\webpack.js:186
1>      outputOptions.children = options.map(o => o.stats);
1>                                             ^^
1>SyntaxError: Unexpected token =>
1>    at exports.runInThisContext (vm.js:73:16)
1>    at Module._compile (module.js:443:25)
1>    at Object.Module._extensions..js (module.js:478:10)
1>    at Module.load (module.js:355:32)
1>    at Function.Module._load (module.js:310:12)
1>    at Function.Module.runMain (module.js:501:10)
1>    at startup (node.js:129:16)
1>    at node.js:814:3
1>C:\git\zoeri\zoeri-azure-graphs\samples\Zoeri.Azure.Graphs.Sample.Web\Zoeri.Azure.Graphs.Sample.Web.csproj(33,5): error MSB3073: The command "node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" exited with code 1.
1>Done building project "Zoeri.Azure.Graphs.Sample.Web.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

期待任何帮助

问题在于ECMASCRIPT版本,基本上是JS版本。 尝试使用最新的NodeJ或4.5以上的节点(需要使用“使用严格”;选项)

==>是ES6中使用的新语法