How to Deploy PnP Modern Search Web Parts

Created by NHC IT Support, Modified on Mon, 27 May, 2024 at 10:21 AM by NHC IT Support

How to Deploy PnP Modern Search Web Parts

However, this solution has to be deployed manually to your tenant. Let’s see how.

1 – Download the PnP package

You can download the latest releases HERE.

You’ll see there are two major versions: v3 and v4. Important notes:

  • The v4 version uses a brand new code architecture and replaces the older v3 codebase. There will be no new features added to v3.x anymore, but bug fixes will be provided as needed.
  • Because v4.x is not at feature parity yet with v3.x, you can still use the v3.x packages to meet your requirements.
  • Also, there is not an auto-upgrade path from v3 to v4 due to the new architecture.
  • New search functionality backed by the Microsoft Graph Search API will be v4 only.

If this is the first time you install PnP Modern Search, always go for v4.

On the Releases page, scroll down to Assets, and then click on the .sppkg file:

Note: If you’ve installed the 2021 Jan release of v4, you had to deploy two packages, because the extensibility library was a separate .sppkg file. With the 2021 March release, there’s only one package, the team has replaced the extensibility library dependency by an npm package. Now you only need to deploy one SPFx solution in you app catalog.

2 – Deploy the PnP Modern Search package to your tenant’s App Catalog

App Catalog is a special site collection in SharePoint, that stores the apps for your organization’ use. If you have an existing App Catalog, you can deploy the PnP Modern Search package there. Otherwise, you have to create a new App Catalog.

2.1 – Create a new App Catalog

You have to be a tenant administrator to create a new App Catalog.

Go to Microsoft 365 Admin / SharePoint Admin Center. On the left menu, click on “More features”, and the select “Apps”:

Open the SharePoint App Catalog.

Once here, click on New App Catalog, then fill in the form, so that the new site collection will be created:

Create SharePoint App Catalog site collection

2.2 – Deploy the PnP Modern Search Package

Once your App Catalog is done, or you have one that has been created earlier, open its URL and then click on “Apps for SharePoint”:

Open the list of Apps.

On this screen, click on Upload, then choose the PnP Modern Search package file which you downloaded in Step 1.

Upload PnP Modern Search Web Parts to the SharePoint App Catalog.

When you’re asked if you trust PnP Modern Search Web Parts, click the checkbox if you want to deploy it to all site collections, otherwise leave it unchecked if you need it on a few selected sites only. Then click Deploy:

Do you trust PnP Modern Search? - Choose where to deploy.

Once done, you should see the PnP Modern Search Web Parts in the App Catalog:

PnP Modern Search in the App Catalog.


Now, go to any (modern) site on your tenant (in a site collection where you’ve deployed PnP Modern Search above), and edit the page. In the web parts list, search for “PnP”, and you’ll see the PnP Modern Search Web Parts there:

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article