Cannot Find Manifest error in new Sharepoint WebPart

Jesse Kuras 21 Reputation points
2022-12-01T22:45:45.583+00:00

I am learning Sharepoint development and am following the basic tutorial at https://zcusa.951200.xyz/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part

I have completed all previous steps as far as setting up the 365 tenant and setting up my development environment. Here are the versions I have installed.

yo --version
4. 3.1
node --version
16. 15.1 (same error occurs with other supported versions mentioned in the guide)
yeoman generator version
@microsoft/generator-sharepoint@1.16.1

I am on a Windows 10 64-bit computer.

I can run the yeoman build and it installs with no issues in the console, and can run gulp serve with no errors in the console. However, I then receive the following error when adding the default Hello World WebPart to the workbench page. I have looked into the manifest files and determined this is the '@microsoft/sp-property-pane"' component, which does appear in the node_modules folder, and is properly referenced in every manifest file I can find. I have also tried running it from multiple pages in Sharepoint such as "https://4fly6x.sharepoint.com/sites/ConnectDashboard/_layouts/15/workbench.aspx" and "https://4fly6x.sharepoint.com/_layouts/15/workbench.aspx". I have also tried adding the query "?debug=true&noredir=true&debugManifestsFile=https://localhost:4321/temp/manifests.js" to both URLs as suggested in the console output to no avail.

I have not made any changes to the files except the config/serve.json file and have double checked and gone through the previous tutorials again to make sure I have not missed any steps. Any help to resolve this would be greatly appreciated, as I cannot move on from this step.

Something went wrong
If the problem persists, contact the site administrator and give them the information in Technical Details.
TECHNICAL DETAILS
ERROR:
Cannot find manifest for f9e737b7-f0df-4597-ba8c-3060f82380db_1.16.1. Store had [1.16.0]. Service worker version: (none),DurableN1=true

CALL STACK:
Error: Cannot find manifest for f9e737b7-f0df-4597-ba8c-3060f82380db_1.16.1. Store had [1.16.0]. Service worker version: (none),DurableN1=true
at e.getManifest (https://res-1.cdn.office.net/files/sp-client/sp-webpart-workbench-assembly_en-us_7c37646a7f4b0e091d2a805c37da5d1a.js:70:826262)
at e.requestManifest (https://res-1.cdn.office.net/files/sp-client/sp-webpart-workbench-assembly_en-us_7c37646a7f4b0e091d2a805c37da5d1a.js:70:828047)
at e._configureComponentResource (https://res-1.cdn.office.net/files/sp-client/sp-webpart-workbench-assembly_en-us_7c37646a7f4b0e091d2a805c37da5d1a.js:70:838409)
at e.configLoadComponent (https://res-1.cdn.office.net/files/sp-client/sp-webpart-workbench-assembly_en-us_7c37646a7f4b0e091d2a805c37da5d1a.js:70:836624)
at e._loadComponent (https://res-1.cdn.office.net/files/sp-client/sp-webpart-workbench-assembly_en-us_7c37646a7f4b0e091d2a805c37da5d1a.js:70:841017)
at e.loadComponent (https://res-1.cdn.office.net/files/sp-client/sp-webpart-workbench-assembly_en-us_7c37646a7f4b0e091d2a805c37da5d1a.js:70:856680)
at https://res-1.cdn.office.net/files/sp-client/sp-webpart-workbench-assembly_en-us_7c37646a7f4b0e091d2a805c37da5d1a.js:70:839820
at new Promise (<anonymous>)
at e.loadComponent (https://res-1.cdn.office.net/files/sp-client/sp-webpart-workbench-assembly_en-us_7c37646a7f4b0e091d2a805c37da5d1a.js:70:839706)
at e.loadComponent (https://res-1.cdn.office.net/files/sp-client/sp-webpart-workbench-assembly_en-us_7c37646a7f4b0e091d2a805c37da5d1a.js:70:833078)

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,190 questions
{count} votes

Accepted answer
  1. Tong Zhang_MSFT 9,236 Reputation points
    2022-12-02T08:28:34.73+00:00

    Hi @Jesse Kuras ,

    According to my research and testing, I reproduced your issue. If I upgrade the version of SPFX to v1.16.1, I will get the same error. As a workaround, I recommend that you can go back to a previous version, such as v1.16.0 .

    Similar issue for reference: https://github.com/SharePoint/sp-dev-docs/issues/8623

    Hope it can help you. Thanks for your understanding.

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.