Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a declaration file for module #6

Open
jsonpreet opened this issue Sep 1, 2022 · 1 comment
Open

Could not find a declaration file for module #6

jsonpreet opened this issue Sep 1, 2022 · 1 comment

Comments

@jsonpreet
Copy link

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

@farhang103
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants