Sp-dev-docs: Unable to add multiple different components to the same project

Created on 8 Jun 2018  路  3Comments  路  Source: SharePoint/sp-dev-docs

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

Be able to add multiple different components (web parts, extensions) to the same project.

Observed Behavior

When you run the Yeoman generator to add another component, you are not being prompted for the component type. Instead, the generator directly prompts you for the component name assuming the type of the initially selected component.

Steps to Reproduce

  • scaffold new project using generator 1.5.0
  • use the latest set of packages (SPO only)
  • create web part with default values
  • run the generator to add another component
  • you are prompted directly to provide the web part name instead of choosing first the type of component you want to add
spfx-general tracked

Most helpful comment

We will be releasing updated 1.5.1 version early this week with few additional fixes. Sorry for the inconvenience.

All 3 comments

Thanks, @waldekmastykarz for reporting - we are on it.

We will be releasing updated 1.5.1 version early this week with few additional fixes. Sorry for the inconvenience.

No problem. Great to hear you guys were able to fix it so quickly.

Was this page helpful?
0 / 5 - 0 ratings