SPFX List View Command Set React Error Invariant 290

Praveen Hooda 6 Reputation points
2020-09-03T05:13:19.003+00:00

On clicking the custom List View Command Set I am opening a Panel. The issue is that it not opening a panel for the first time on loading of library view, but on refreshing the library view the command set works fine.

On checking the console logs I can see Microsoft files are throwing react error as below which goes away on refreshing the page:

sp-pages-assembly_en-au_7b476b5a94a514062b5d33d1b140ce97.js:1 Error: Minified React error #290; visit https://reactjs.org/docs/error-decoder.html?invariant=290&args\[\]=page-0 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Xl (sp-pages-assembly_en-au_7b476b5a94a514062b5d33d1b140ce97.js:1)
at d (sp-pages-assembly_en-au_7b476b5a94a514062b5d33d1b140ce97.js:1)
at m (sp-pages-assembly_en-au_7b476b5a94a514062b5d33d1b140ce97.js:1)
at sp-pages-assembly_en-au_7b476b5a94a514062b5d33d1b140ce97.js:1
at ea (sp-pages-assembly_en-au_7b476b5a94a514062b5d33d1b140ce97.js:1)
at Oo (sp-pages-assembly_en-au_7b476b5a94a514062b5d33d1b140ce97.js:1)
at ko (sp-pages-assembly_en-au_7b476b5a94a514062b5d33d1b140ce97.js:1)
at bo (sp-pages-assembly_en-au_7b476b5a94a514062b5d33d1b140ce97.js:1)
at po (sp-pages-assembly_en-au_7b476b5a94a514062b5d33d1b140ce97.js:1)
at sp-pages-assembly_en-au_7b476b5a94a514062b5d33d1b140ce97.js:1

Appreciate any help as this issue popped up since 3 days in Production with no change!

Regards,

Praveen Hooda

Microsoft 365 and Office SharePoint For business Windows
{count} vote

1 answer

Sort by: Most helpful
  1. Amos Wu-MSFT 4,051 Reputation points
    2020-09-07T09:36:00.723+00:00

    I could not reproduce your issue.
    My test code for your reference:

     import * as React from 'react';  
        import { Panel, PanelType } from 'office-ui-fabric-react/lib/Panel';  
      
    export default class CustomPanel extends React.Component<{}, {}> {  
      public render(): React.ReactElement<{}> {  
        return (  
          <div>  
            <Panel  
              isOpen={true}  
              type={ PanelType.smallFixedFar }  
              headerText='test'  
              closeButtonAriaLabel='Close'  
            >  
            <p>Hello Panel!</p>  
            </Panel>  
          </div>  
        );  
      }  
    }  
    

    ListView Command code OnExecute function:23082-code.txt
    Test result:
    23063-test43.gif


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.