Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with webpack 5 beta #42

Closed
valse opened this issue Jul 30, 2020 · 2 comments
Closed

Not working with webpack 5 beta #42

valse opened this issue Jul 30, 2020 · 2 comments

Comments

@valse
Copy link

valse commented Jul 30, 2020

Hi, I'm trying to add the webpack 5 beta but I have this error on compilation:

Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema
- configuration[0].module.rules[2].issuer has an unknown property 'test'.
name: 'ValidationError',
  errors: [
    {
      keyword: 'oneOf',
      dataPath: '[0].module.rules',
      schemaPath: '#/properties/rules/oneOf',
      params: [Object],
      message: 'should match exactly one schema in oneOf',
      schema: [Array],
      parentSchema: [Object],
      data: [Array],
      children: [Array]
    },
    {
      keyword: 'oneOf',
      dataPath: '[1].module.rules',
      schemaPath: '#/properties/rules/oneOf',
      params: [Object],
      message: 'should match exactly one schema in oneOf',
      schema: [Array],
      parentSchema: [Object],
      data: [Array],
      children: [Array]
    }
  ],

Maybe are you missing the oneOf rule before the use one?

@arefaslani
Copy link
Member

arefaslani commented Jul 30, 2020

@chuyik @valse Just released a new patch considering the update. Thanks @chuyik. Checkout version 1.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@valse @arefaslani and others