2017-01-11 12 views
1

私たちのプロジェクトでは、ウェブパックとヤーンでAngular2を使用しています。ウェブパックヤーンを使用した角度2

ERROR in ./src/main/webapp/app/app.main.ts 
Module build failed: Error 
at new FatalError (D:\workspace\deploy\webpackTest\marketplace\node_modules\ 
tslint\lib\error.js:33:23) 
at Function.findConfiguration (D:\workspace\deploy\webpackTest\marketplace\n 
ode_modules\tslint\lib\configuration.js:97:15) 
at resolveOptions (D:\workspace\deploy\webpackTest\marketplace\node_modules\ 
tslint-loader\index.js:26:64) 
at Object.module.exports (D:\workspace\deploy\webpackTest\marketplace\node_m 
odules\tslint-loader\index.js:110:17) 

ERROR in ./src/main/webapp/app/vendor.ts 
Module build failed: Error 
at new FatalError (D:\workspace\deploy\webpackTest\marketplace\node_modules\ 
tslint\lib\error.js:33:23) 
at Function.findConfiguration (D:\workspace\deploy\webpackTest\marketplace\n 
ode_modules\tslint\lib\configuration.js:97:15) 
at resolveOptions (D:\workspace\deploy\webpackTest\marketplace\node_modules\ 
tslint-loader\index.js:26:64) 
at Object.module.exports (D:\workspace\deploy\webpackTest\marketplace\node_m 
odules\tslint-loader\index.js:110:17) 

ERROR in ./src/main/webapp/app/polyfills.ts 
Module build failed: Error 
at new FatalError (D:\workspace\deploy\webpackTest\marketplace\node_modules\ 
tslint\lib\error.js:33:23) 
at Function.findConfiguration (D:\workspace\deploy\webpackTest\marketplace\n 
ode_modules\tslint\lib\configuration.js:97:15) 
at resolveOptions (D:\workspace\deploy\webpackTest\marketplace\node_modules\ 
tslint-loader\index.js:26:64) 
at Object.module.exports (D:\workspace\deploy\webpackTest\marketplace\node_m 
odules\tslint-loader\index.js:110:17) 

tslint.jsonファイルは次のとおりです:私たちはwebpack --config webpack/webpack.dev.jsを使用してアプリケーションを実行しようとすると、我々はというエラーを取得している

{ 
    "rules": { 
     "no-unused-expression": true, 
     "no-duplicate-variable": true, 
     "no-duplicate-key": true, 
     "no-unused-variable": true, 
     "curly": true, 
     "class-name": true, 
     "semicolon": [false], 
     "semicolon": ["always"], 
     "triple-equals": true 
    } 
} 

私はtslintの異なるバージョンを試してみましたが、それは働いていません。

+2

webpackとtslintファイルを追加できますか? –

+0

GitHubのコードマークダウン(トリプルバックティック)のフレーバーはここでは機能しません。 – halfer

答えて

0

webpack --config webpack/webpack.dev.js --display-error-detailsを実行してください。

関連する問題