mosch / react-avatar-editor

Small avatar & profile picture component. Resize and crop uploaded images using a intuitive user interface.
https://react-avatar-editor.netlify.app/
MIT License
2.35k stars 369 forks source link

TS2307: Cannot find module 'react-avatar-editor' or its corresponding type declarations. #393

Closed alexkobylansky closed 1 year ago

alexkobylansky commented 1 year ago

"typescript": "^4.5.5", "react": "^17.0.2", "react-dom": "^17.0.2", "@types/react": "^17.0.39", "@types/react-dom": "^17.0.11", I add library to devDependencies: "react-avatar-editor": "^13.0.0" When I try to import the library into a component, Typescript shows a mistake

luhart commented 1 year ago

@alexkobylansky Hey it looks like you're adding the wrong thing. It's @types/react-avatar-editor, not react-avatar-editor

mosch commented 1 year ago

We do provide types now.