Could not find a declaration file for module 'bootstrap/dist/js/bootstrap'. '/Users/shahryar/Documents/Programming/Docker/Front/mishka-cms-front/node_modules/bootstrap/dist/js/bootstrap.js' implicitly has an 'any' type.
If the 'bootstrap' package actually exposes this module, consider sending a pull request to amend 'github.com/DefinitelyTyped/Definit...
A Full Stack Developer from India. I post content about Web Development and Programming. I am currently working as a Senior Software Engineer at LTI India.
Hi, What we should do in typescript?
useEffect(() => {import('bootstrap/dist/js/bootstrap');
}, []);
has this error
hey @shahryarjb you need to import useEffect from react in your file
@leorsgomes @anuraggharat
Hi friends, I imported react before, but for fixing this problem based on this post that helped me to fix it
blog.logrocket.com/handling-bootst...
we need to use
requireinstead of importHi Shahryar. Can you share your code so that we can understand your issue?
Hi, I had the same issue and this is how I fixed it in TypeScript and Next.js 13