Skip to content

configuration misses the property 'entry'. #144

@NN---

Description

@NN---

I have a webpack configuration which is merged with other:

var commonConfig = require("./webpack.common.config.js");
var webpack = require("webpack");
var merge = require("webpack-merge");

var CopyWebpackPlugin = require("copy-webpack-plugin");

var resourcesFolder = "resources";

module.exports = merge(commonConfig, {
	entry: {
 .... 
 }
});

When I run webpack-cli --migrate I get:

WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration misses the property 'entry'.
   object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function
   The entry point(s) of the compilation.

Can you support this scenario too?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions