1

私たちのプロジェクトでは、Webpack と yarn で Angular2 を使用しています。を使用してアプリを実行しようとするとwebpack --config webpack/webpack.dev.js、次のエラーが表示されます。

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ファイルは次のとおりです。

{ 
    "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 を試しましたが、うまくいきません。

4

1 に答える 1