SPFX ListView CommandSet React Error Invariant 290

Oleksandr Ulianytskyi 1 Reputation point
2020-09-28T17:35:03.28+00:00

Recently I got an issue without any code change in production.
The steps to reproduce are next:
Open site collection root page and then navigate to any document library and click on custom command set - an error occurred: Minified React error #290.

But when you refresh a document library view (o navigate to it directly) - everything is ok.

I guess it is something related to changes in modern list view and how scripts are loaded when page is refreshed partially (when you navigate from ordinary site page to document library)

Here is a repo with on of possible examples of code: react-command-panel

Microsoft 365 and Office | SharePoint | For business | Windows

2 answers

Sort by: Oldest
  1. Amos Wu-MSFT 4,131 Reputation points Moderator
    2020-09-29T03:19:15.313+00:00

    I could not reproduce your issue with your code.
    28976-50.gif
    The reason of this issue may be the relevant files are not loaded when the page loads.
    I suggest you submit a ticket in admin center,so our engineers could help you directly.


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.

    Was this answer helpful?

    0 comments No comments

  2. Oleksandr Ulianytskyi 1 Reputation point
    2020-09-29T09:41:20.403+00:00

    Please, look into browser console for an error.
    When you press a search button you have to get a search results rather then a panel closing.

    Was this answer helpful?


Your answer

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