[英]Angular2 using webpack yarn
For our project we are using Angular2 with webpack and yarn. 对于我们的项目,我们使用Angular2与webpack和纱线。 when we try to run the app using
webpack --config webpack/webpack.dev.js
we are getting an error saying: 当我们尝试使用
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)
The tslint.json
file is: 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
}
}
I tried with different versions of tslint, but it's not working. 我尝试使用不同版本的tslint,但它不起作用。
尝试运行webpack --config webpack/webpack.dev.js --display-error-details
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.