enesusta/react-ityped

Import issue

Opened this issue · 0 comments

import ITyped from 'react-ityped'; this line is giving me error

Error:

Could not find a declaration file for module 'react-ityped'. '/Users/.../node_modules/react-ityped/dist/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/react-ityped` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-ityped';`

PD: also got the same error with original ityped repository

I am using npm to install the react-ityped.
I am using react with typescript.

"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-ityped": "^1.0.2",
"react-scripts": "5.0.0",