SharePoint manifest load error SPFx and React

Tael Oliveira 20 Reputation points
2023-01-24T03:47:12.5133333+00:00

Screenshot 2023-01-24 at 2.40.41 pm

We are trying to make an PWA which works offline. Until December last year it was working fine, we could load the app, go through the content, change pages.

Something happened and we are not able to load the app anymore and we have this error. We have tried a lot of things on the service worker and nothing has worked.

If someone knows how to solve this, please let us know.

Thanks

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-01-24T07:55:13.6433333+00:00

    Hi @Tael Oliveira

    This error probably means that you are somehow using react version 16.8.5 that may not be compatible with SPFx version you are using. See the compatibility matrix here. You will need to check if the react version support your environment by the link.

    The app you are referring to might be created servral years ago. So you could just use the tooling from that time, i.e. node 10.x. There is a great node version manager aka NVM tool that allows you to use multiple independent node versions. You could try node version like following

    > node --version
    v10.x
    > npm ci
    > npm i -g gulp-cli
    > gulp serve
    
    

    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.