creativetimofficial / material-kit-react

Material Kit React free and open source by Creative Tim
https://www.creative-tim.com/product/material-kit-react?ref=mkr-readme
1.19k stars 2.13k forks source link

[Bug] Default Project got error #100

Closed Ambitiont109 closed 2 years ago

Ambitiont109 commented 2 years ago
  1. npm install
  2. npm start I got this error after I do aboe thing.
    
    Failed to compile.

src\examples\Breadcrumbs\index.js Line 64:3: Prop type "object" is forbidden react/forbid-prop-types

src\examples\Footers\CenteredFooter\index.js Line 139:3: Prop type "object" is forbidden react/forbid-prop-types Line 140:3: Prop type "object" is forbidden react/forbid-prop-types

src\examples\Footers\SimpleFooter\index.js Line 122:3: Prop type "object" is forbidden react/forbid-prop-types

src\examples\Navbars\DefaultNavbar\DefaultNavbarMobile.js Line 162:3: Prop type "object" is forbidden react/forbid-prop-types

src\examples\Navbars\DefaultNavbar\index.js Line 566:3: Prop type "object" is forbidden react/forbid-prop-types

src\layouts\sections\components\BaseLayout\index.js Line 71:3: Prop type "object" is forbidden react/forbid-prop-types

Search for the keywords to learn more about each error.

sajadevo commented 2 years ago

Hi @Ambitiont109

Thanks for using our product, please add the following line of code to the .eslintrc.json file on the rules object. "react/forbid-prop-types": "off"

Note: To get the latest updates and supports for the products and other related things to Creative Tim please join our Discord Community.

All the best, Sajad
 React Developer @ Creative-Tim.com