Skip to content

Entry should be a non-empty array #62

@movie4

Description

@movie4

Hello!

Webpack 5 — when run, get error:

ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
 - configuration.entry['main'] should be a non-empty array.
   -> All modules are loaded upon startup. The last one is exported.

config example

  mode: 'development',
  watch: true,
  target: 'web',
  name: 'js',
  entry: {
    main: [ './static/js/main' ],
  },
  output: {
    path: '//static/js/__build/',
    publicPath: '/static/js/__build/',
    filename: '__[name].js'
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions