配置对象中的Easy Webpack未知属性

配置对象中的Easy Webpack未知属性,webpack,aurelia,easy-webpack,Webpack,Aurelia,Easy Webpack,我正在努力学习简易网页,所以我已经开始了一个最低限度的项目奥雷利亚项目设置 我在运行webpack时遇到以下错误 运行:节点节点\u模块/webpack/bin/webpack.js--config webpack.config.vendor.js 错误: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schem

我正在努力学习简易网页,所以我已经开始了一个最低限度的项目奥雷利亚项目设置

我在运行webpack时遇到以下错误

运行:
节点节点\u模块/webpack/bin/webpack.js--config webpack.config.vendor.js

错误:

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration has an unknown property 'metadata'. These properties are valid:
   object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }
   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: {
           metadata: ...
         }
       })
     ]
{
  "name": "AureliaSpa",
  "version": "0.0.0",
  "dependencies": {
    "aurelia-bootstrapper-webpack": "^1.1.0",
    "aurelia-event-aggregator": "^1.0.1",
    "aurelia-fetch-client": "^1.1.1",
    "aurelia-framework": "^1.1.0",
    "aurelia-history-browser": "^1.0.0",
    "aurelia-loader-webpack": "^2.1.0",
    "aurelia-logging-console": "^1.0.0",
    "aurelia-pal-browser": "^1.1.0",
    "aurelia-polyfills": "^1.2.0",
    "aurelia-route-recognizer": "^1.1.0",
    "aurelia-router": "^1.2.1",
    "aurelia-templating-binding": "^1.3.0",
    "aurelia-templating-resources": "^1.3.1",
    "aurelia-templating-router": "^1.1.0",
    "bootstrap": "^3.3.7",
    "isomorphic-fetch": "^2.2.1",
    "jquery": "^3.1.1"

  },
  "devDependencies": {
    "@types/node": "^6.0.45",
    "@easy-webpack/core": "2.0.1",
    "webpack": "2.2.0",
    "webpack-hot-middleware": "^2.10.0"
  },
  "aurelia": {
    "build": {
      "includeDependencies": "aurelia-*"
    }
  }
}
var path = require('path');

var common = {
  entry: {
    vendor: [
        'aurelia-event-aggregator',
        'aurelia-fetch-client',
        'aurelia-framework',
        'aurelia-history-browser',
        'aurelia-logging-console',
        'aurelia-pal-browser',
        'aurelia-polyfills',
        'aurelia-route-recognizer',
        'aurelia-router',
        'aurelia-templating-binding',
        'aurelia-templating-resources',
        'aurelia-templating-router',
        'bootstrap',
        'bootstrap/dist/css/bootstrap.css',
        'jquery'
    ]
  },
  output: {
    path: path.join(__dirname, 'wwwroot', 'dist'),
    publicPath: '/dist/',
    filename: '[name].js',
    library: '[name]_[hash]'
  }
};

var generateConfig = require('@easy-webpack/core').generateConfig;

var config = generateConfig(common);

module.exports = config;
我在我的网页文件中没有看到任何对元数据的引用,也不知道是什么导致了错误

这些是我的配置文件

package.json:

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration has an unknown property 'metadata'. These properties are valid:
   object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }
   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: {
           metadata: ...
         }
       })
     ]
{
  "name": "AureliaSpa",
  "version": "0.0.0",
  "dependencies": {
    "aurelia-bootstrapper-webpack": "^1.1.0",
    "aurelia-event-aggregator": "^1.0.1",
    "aurelia-fetch-client": "^1.1.1",
    "aurelia-framework": "^1.1.0",
    "aurelia-history-browser": "^1.0.0",
    "aurelia-loader-webpack": "^2.1.0",
    "aurelia-logging-console": "^1.0.0",
    "aurelia-pal-browser": "^1.1.0",
    "aurelia-polyfills": "^1.2.0",
    "aurelia-route-recognizer": "^1.1.0",
    "aurelia-router": "^1.2.1",
    "aurelia-templating-binding": "^1.3.0",
    "aurelia-templating-resources": "^1.3.1",
    "aurelia-templating-router": "^1.1.0",
    "bootstrap": "^3.3.7",
    "isomorphic-fetch": "^2.2.1",
    "jquery": "^3.1.1"

  },
  "devDependencies": {
    "@types/node": "^6.0.45",
    "@easy-webpack/core": "2.0.1",
    "webpack": "2.2.0",
    "webpack-hot-middleware": "^2.10.0"
  },
  "aurelia": {
    "build": {
      "includeDependencies": "aurelia-*"
    }
  }
}
var path = require('path');

var common = {
  entry: {
    vendor: [
        'aurelia-event-aggregator',
        'aurelia-fetch-client',
        'aurelia-framework',
        'aurelia-history-browser',
        'aurelia-logging-console',
        'aurelia-pal-browser',
        'aurelia-polyfills',
        'aurelia-route-recognizer',
        'aurelia-router',
        'aurelia-templating-binding',
        'aurelia-templating-resources',
        'aurelia-templating-router',
        'bootstrap',
        'bootstrap/dist/css/bootstrap.css',
        'jquery'
    ]
  },
  output: {
    path: path.join(__dirname, 'wwwroot', 'dist'),
    publicPath: '/dist/',
    filename: '[name].js',
    library: '[name]_[hash]'
  }
};

var generateConfig = require('@easy-webpack/core').generateConfig;

var config = generateConfig(common);

module.exports = config;
webpack.config.vendor.js:

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration has an unknown property 'metadata'. These properties are valid:
   object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }
   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: {
           metadata: ...
         }
       })
     ]
{
  "name": "AureliaSpa",
  "version": "0.0.0",
  "dependencies": {
    "aurelia-bootstrapper-webpack": "^1.1.0",
    "aurelia-event-aggregator": "^1.0.1",
    "aurelia-fetch-client": "^1.1.1",
    "aurelia-framework": "^1.1.0",
    "aurelia-history-browser": "^1.0.0",
    "aurelia-loader-webpack": "^2.1.0",
    "aurelia-logging-console": "^1.0.0",
    "aurelia-pal-browser": "^1.1.0",
    "aurelia-polyfills": "^1.2.0",
    "aurelia-route-recognizer": "^1.1.0",
    "aurelia-router": "^1.2.1",
    "aurelia-templating-binding": "^1.3.0",
    "aurelia-templating-resources": "^1.3.1",
    "aurelia-templating-router": "^1.1.0",
    "bootstrap": "^3.3.7",
    "isomorphic-fetch": "^2.2.1",
    "jquery": "^3.1.1"

  },
  "devDependencies": {
    "@types/node": "^6.0.45",
    "@easy-webpack/core": "2.0.1",
    "webpack": "2.2.0",
    "webpack-hot-middleware": "^2.10.0"
  },
  "aurelia": {
    "build": {
      "includeDependencies": "aurelia-*"
    }
  }
}
var path = require('path');

var common = {
  entry: {
    vendor: [
        'aurelia-event-aggregator',
        'aurelia-fetch-client',
        'aurelia-framework',
        'aurelia-history-browser',
        'aurelia-logging-console',
        'aurelia-pal-browser',
        'aurelia-polyfills',
        'aurelia-route-recognizer',
        'aurelia-router',
        'aurelia-templating-binding',
        'aurelia-templating-resources',
        'aurelia-templating-router',
        'bootstrap',
        'bootstrap/dist/css/bootstrap.css',
        'jquery'
    ]
  },
  output: {
    path: path.join(__dirname, 'wwwroot', 'dist'),
    publicPath: '/dist/',
    filename: '[name].js',
    library: '[name]_[hash]'
  }
};

var generateConfig = require('@easy-webpack/core').generateConfig;

var config = generateConfig(common);

module.exports = config;

你导入的简易网页上有它-@MukeshSoni,为什么我会出错?你导入的简易网页上有它-@MukeshSoni,为什么我会出错?