FredrikOseberg / react-chatbot-kit

MIT License
299 stars 139 forks source link

VScode not detecting Imports for this library #72

Open hichemfantar opened 2 years ago

hichemfantar commented 2 years ago

For some reason this library's import is not detected by VSCode, intellisense doesn't work and and hitting F12 on the imported element doesn't take me to source, however everything is detected properly when running the project. Might wanna check this out. In the JS project setup I get the

Could not find a declaration file for module 'react-chatbot-kit'.
'c:/Users/User/Desktop/react-chatbot/node_modules/react-chatbot-kit/build/index.js' implicitly has an 'any' type.
 Try `npm i --save-dev @types/react-chatbot-kit` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-chatbot-kit';`ts(7016) 

However in my TS version of the project the import is not detected at all, It's like the library doesn't even exist.

The issue could be related to the lack of an index.js at the root of the library.