webpack 4.1.1 -> Konfiguration.Modul hat eine unbekannte Eigenschaft 'Lader'.

Ich gerade aktualisiert webpack zu 4.1.1 und wenn ich ihn starten will bekomme ich folgende Fehlermeldung:

Ungültige Konfiguration Objekt. Webpack initialisiert wurde mit einem
Konfigurations-Objekt, das nicht mit der API-schema.
- Konfiguration.Modul hat eine unbekannte Eigenschaft 'Lader'. Diese Eigenschaften gelten: object { exprContextCritical?,
exprContextRecursive?, exprContextRegExp?, exprContextRequest?,
noParse?, Regeln?, defaultRules?, unknownContextCritical?,
unknownContextRecursive?, unknownContextRegExp?,
unknownContextRequest?, unsafeCache?, wrappedContextCritical?,
wrappedContextRecursive?, wrappedContextRegExp?,
strictExportPresence?, strictThisContextOnImports? } -> Optionen
Auswirkungen auf die normalen Module (NormalModuleFactory).

loaders so Aussehen und arbeitete mit webpack 3.11.0:

module: {
    loaders: [
        { test: /\.tsx?$/, loader: ['ts-loader'] },
        { test: /\.css$/, loader: "style-loader!css-loader" },
        {
            test: /\.scss$/, use: [{
                loader: "style-loader" //creates style nodes from JS strings
            }, {
                loader: "css-loader" //translates CSS into CommonJS
            }, {
                loader: "sass-loader" //compiles Sass to CSS
            }]
        },
        { test: /\.(otf|ttf|eot|svg|woff(2)?)(\?[a-z0-9=&.]+)?$/, loader: 'file-loader?name=./Scripts/dist/[name].[ext]' }
    ]
}

InformationsquelleAutor Ogglas | 2018-03-09

Schreibe einen Kommentar