Is there a way to fix the issue of missing TypeScript definitions for the @tawk.to/tawk-messenger-react module?
The module '@tawk.to/tawk-messenger-react' does not have a declaration file. 'c:/develop/eachblock/aquatrack/management-tool-app/node_modules/@tawk.to/tawk-messenger-react/dist/tawk-messenger-react.es.js' is implicitly of type 'any'. You can try
npm i --save-dev @types/tawk.to__tawk-messenger-react if available or create a new declaration (.d.ts) file with
declare module '@tawk.to/tawk-messenger-react';``
After installing tawk using
npm i @tawk.to/tawk-messenger-react
I created a new component called TawkMessenger in the component folder and added this code:
`import TawkMessengerReact from "@tawk.to/tawk-messenger-react";
const TawkMessenger = () => {
return (
<TawkMessengerReact
propertyId="YOUR_PROPERTY_ID"
widgetId="YOUR_WIDGET_ID"
/>
);
};
export default TawkMessenger;`
However, I encountered the following error:
The module '@tawk.to/tawk-messenger-react' does not have a declaration file. 'c:/develop/eachblock/aquatrack/management-tool-app/node_modules/@tawk.to/tawk-messenger-react/dist/tawk-messenger-react.es.js' is implicitly of type 'any'. You can try
npm i --save-dev @types/tawk.to__tawk-messenger-react if available or create a new declaration (.d.ts) file with
declare module '@tawk.to/tawk-messenger-react';``
When attempting to follow the instructions and install
npm i --save-dev @types/tawk.to__tawk-messenger-react
, it failed to install.