エラーの私の出力:
無効な構成オブジェクト。Webpackは、APIスキーマと一致しない構成オブジェクトを使用して初期化されました。-configuration.moduleに不明なプロパティ「ローダー」があります。次のプロパティは有効です:オブジェクト{exprContextCritical?、exprContextRecursive?、exprContextRegExp?、exprContextRequest?、noParse?、rules、defaultRules?、unknownContextCritical?、unknownContextRecursive?、unknownContextRegExp?、unknownContextRequest?、unsafeCache?、wrappedContextCritical?、wrappedContextRecursive ?、strictExportPresence?、strictThisContextOnImports?}->通常のモジュールに影響するオプション(
NormalModuleFactory)。
私のwebpack.config.js:
var webpack = require('webpack');
var path = require('path');
var BUILD_DIR = path.resolve(__dirname, 'src/client/public');
var APP_DIR = path.resolve(__dirname, 'src/client/app');
var config = {
  entry: APP_DIR + '/index.jsx',
  module : {
    loaders : [
      {
        test : /\.jsx?/,
        include : APP_DIR,
        loader : 'babel-loader'
      }
    ]
  },
  output: {
    path: BUILD_DIR,
    filename: 'bundle.js'
  }
};
module.exports = config;私のwebpackバージョン:
webpack@4.1.1
rulesWebPACKの4に