FredrikOseberg / react-chatbot-kit

MIT License
328 stars 157 forks source link

Typescript Types #167

Open TheCollinsByte opened 11 months ago

TheCollinsByte commented 11 months ago

Failed to use the Chatbot library because I am using typescript within my project and the types are missing I was asking how a you providing the typescript types because I can't find the @types/react-chatbot-kit package from the npm registry.

aamikus commented 11 months ago

There seems to be a problem with the node_modules package generated for versions starting from 2.2.0. The src folder with typescript source files is missing. The problem doesn't occur for versions <=2.1.2.

Screenshot 2023-12-09 at 12 49 59 Screenshot 2023-12-09 at 12 51 15
TheCollinsByte commented 11 months ago

Suggestion on fixing the problem is to use the previous version or there is another hack on the problem will using the latest version.