Can i add multiple webparts in my SPFX project for sharepoint server 2016 - classic pages. All samples are for modern pages like this.

New webpart where i trying to add in my existing project is with another name, but error is:

Cannot create two Web part (on-prem) with the same name

I have following error: enter image description here

Where i install latest version on @microsoft/generator-sharepoint i solving above problem.

Modern Page:

enter image description here

But doesn't work for classic pages.

  • Have you noticed that the error message is "Cannot create two Web part (on-prem) with the same name."? Oct 31, 2017 at 18:46
  • Yes, new webpart where i trying to add in existing project is with another name.
    – Goshky
    Nov 1, 2017 at 8:18
  • what version of yeoman are you using ? can you update it to the latest version and check ? Nov 1, 2017 at 8:28
  • yeoman version is - yo@2.0.0
    – Goshky
    Nov 1, 2017 at 8:33
  • Sorry, i meant install the latest version of the sharepoint generator as npm install @microsoft/generator-sharepoint@latest -g and then check Nov 1, 2017 at 8:35

1 Answer 1


Looks like the issue has been resolved in the SPFx v1.3.4.

Update the your sharepoint generator to this version to resolve the issue.

To update the generator, use the below command and then run the generator again to create multiple webparts in the same solution:

npm install @microsoft/generator-sharepoint@latest -g
  • The new web part is not displayed on the classic page
    – Goshky
    Nov 1, 2017 at 8:51
  • 1
    I think it will be there in the webpart gallery, can you add it from there ? Nov 1, 2017 at 8:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.