react-saas-template icon indicating copy to clipboard operation
react-saas-template copied to clipboard

JS errors on unchanged main branch

Open Piogar opened this issue 2 years ago • 0 comments

Hello. I cloned and run clean project (main branch) and faced following JS errors in console after logging:

  1. Failed prop type: The prop selectedTab is marked as required in NavBar, but its value is null.
  2. React does not recognize the buttonRef prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase buttonref instead. If you accidentally passed it from a parent component, remove it from the DOM element.
  3. React does not recognize the labelWidth prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase labelwidth instead. If you accidentally passed it from a parent component, remove it from the DOM element.

Per my understanding, first one is caused by undetermined order in which components are rendered and can be fixed by assigning dummy/empty value to selectedTab (so that NavBar does not mark anything unless some componen is rendered).

Second and third issues seems to be related to changes in mui. Is that correct? Should they just be removed?

Thanks in advance for any help.

Piogar avatar Dec 29 '23 15:12 Piogar