2017-12-28 17 views
0

Visual Studio 2017(Enterprise)のAngular ASP.NET Core Webアプリケーションテンプレートを使用して作成された新しいプロジェクトはビルドされません。これまで私は2台のマシンでこれを再現しました。ビルド出力は以下に示されています:Visual Studio 2017のASP.NETコア角テンプレートが "SyntaxError:予期しないトークン"でビルドできません

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 ========== 

助けを楽しみにしています!

答えて

0

問題は、基本的にJSバージョンのECMASCRIPTバージョンです。 (「厳格な使用」を使用する必要があります;オプション)4.5上で、最新のnodejsまたはノードを使用してみてください

を==>新しい構文はES6

に使用されています
関連する問題