下面是我的webpack js文件(在许多地方修改以匹配v2),我在尝试构建应用程序时遇到错误。
^
> WebpackOptionsValidationError: Invalid configuration object. Webpack
> has been initialised using a configuration object that does not match
> the API schema.
> - configuration has an unknown property 'tslint'. These properties are valid: object { amd?, bail?, cache?, context?, dependencies?,
> devServer?, devtool?, entry, externals?, loader?, module?, name?,
> node?, output?, performance?, plugins?, p For typos: please correct
> them. For loader options: webpack 2 no longer allows custom
> properties in configuration.
> Loaders should be updated to allow passing options via loader options in module.rules.
> Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:
> plugins: [
> new webpack.LoaderOptionsPlugin({
> // test: /\.xxx$/, // may apply this only for some modules
> options: {
> tslint: ...
> }
尝试构建时遇到以下错误:
<Tuple<List<string,int>>, <Tuple<List<int,int>>
答案 0 :(得分:0)
谢谢伙计们,我自己也想过了。在npm缓存中引用了lint,所以我已经清除了它并且错误消失了。我对文件有一些问题,我将作为一个单独的问题分享。