Forum Discussion
rosamartinamilazzo25
May 14, 2026Tin Contributor
pnp-modern-search does not work in the local SharePoint workbench
Version used 4.9.0 (SPFx 1.15.0) Describe the bug The solution works correctly when deployed using the .sppkg package in SharePoint Online, but it does not work in the local SharePoint workbench. ...
Ahmed_Masoud97
Sep 14, 2026Steel Contributor
Use the SharePoint hosted workbench rather than the local workbench.
The local workbench was removed in SPFx 1.13, so it is not supported with SPFx 1.15. Using it can lead to module and chunk loading errors such as:
Microsoft/sp-webpart-workbench/lib/api
Cannot find module './15.js'
In config/serve.json, set initialPage to:
https://<tenant>.sharepoint.com/sites/<site>/_layouts/15/workbench.aspx
Then run gulp serve while signed in to the same Microsoft 365 tenant.
The hosted workbench provides the SharePoint page context required by PnP Modern Search.