grayhatdevelopers / material-web-components-react

Material Web Components for React ⚛
https://material-web-components-react.grayhat.studio
MIT License
28 stars 3 forks source link

Error when using with react and typescript #14

Closed RobertSobral closed 1 month ago

RobertSobral commented 1 month ago

When I use it with react and typescript I get the following error

Could not find a declaration file for module 'material-web-components-react/checkbox'. 'c:/Users/Robert/Desktop/Test/app/node_modules/material-web-components-react/checkbox/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/material-web-components-react if it exists or add a new declaration (.d.ts) file containing `declare module 'material-web-components-react/checkbox';

SaadBazaz commented 1 month ago

This is an open issue we're trying to solve: #12 In the meanwhile, you can probably set skipLibCheck to false, and strict to false, in your tsconfig.json to temporarily bypass this issue.

abbaty48 commented 2 days ago

This is an open issue we're trying to solve: #12 In the meanwhile, you can probably set skipLibCheck to false, and strict to false, in your tsconfig.json to temporarily bypass this issue.

the problem still persist, turning off strict to false is not ideal