Skip to content

[BUG]: @webpack-cli/add not working on topScope and merge #795

Description

@rishabh3112

Describe the bug
When we want to add something to topScope raises following error
Screenshot from 2019-03-18 20-10-56

What is the current behavior?
Currently this error raises as add-generator maps properties from optionsSchema of webpack. But this schema doesn't include properties that are part of configuration object we create in generator.

To Reproduce
Steps to reproduce the behavior:

  1. webpack add
  2. give answer as topScope

Expected behavior
Add items to topScope

Screenshots
uploaded above

Please paste the results of webpack-cli info here, and mention other relevant information


  System:
    OS: Linux 4.15 Ubuntu 18.04.2 LTS (Bionic Beaver)
    CPU: (3) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  Binaries:
    Node: 10.15.0 - ~/.nvm/versions/node/v10.15.0/bin/node
    Yarn: 1.13.0 - ~/.nvm/versions/node/v10.15.0/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v10.15.0/bin/npm
  Browsers:
    Firefox: 65.0.1
  npmGlobalPackages:
    webpack-cli: 3.2.3
    webpack: 4.29.3

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions