react-notifications icon indicating copy to clipboard operation
react-notifications copied to clipboard

Could not find a declaration file for module 'react-notifications'

Open 0xdevnet opened this issue 4 years ago • 1 comments

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

0xdevnet avatar Jan 19 '22 06:01 0xdevnet

nitipat009 avatar Apr 20 '22 20:04 nitipat009

https://typescript.tv/errors/#TS7016 "import" like that: const { NotificationContainer } = require("react-notifications");

bjornbrandy avatar Jan 15 '23 08:01 bjornbrandy