react-advanced-news-ticker icon indicating copy to clipboard operation
react-advanced-news-ticker copied to clipboard

Could not find a declaration file for module

Open jsonpreet opened this issue 2 years ago • 1 comments

Could not find a declaration file for module 'react-advanced-news-ticker'. 'D:/Projects/nextjs/wp/node_modules/react-advanced-news-ticker/dist/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/react-advanced-news-ticker if it exists or add a new declaration (.d.ts) file containing declare module 'react-advanced-news-ticker';ts(7016)

image

jsonpreet avatar Sep 01 '22 08:09 jsonpreet

Create a folder in your project and name it @types. After that, create a file with the name of alltypes.d.ts and inside it, type this: declare module "react-advanced-news-ticker"; That's all!

farhang103 avatar Sep 04 '22 15:09 farhang103