Code Monkey home page Code Monkey logo

tawkto-react's Introduction

Hi, 👋 I'm Steve

Tools

                                                           

tawkto-react's People

Contributors

dependabot[bot] avatar frabanca avatar gillesdm avatar kwekuboateng avatar steve-jr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tawkto-react's Issues

Not working

Nothing happen. It doesn't give even an error.

FEATURE Request: Need unsubscribe method

The behavior I'm expecting is, if the user exits from a page the chat widget will not show up.
Need a function to unsubscribe on page exit on useEffect.
I'm interested to work on that.

Support for the experimental syntax 'classPrivateProperties' isn't currently enabled (15:23):

./node_modules/tawkto-react/src/index.js
SyntaxError: ...\node_modules\tawkto-react\src\index.js: Support for the experimental syntax 'classPrivateProperties' isn't currently enabled (15:23):

13 | class TawkTo {
14 | constructor(propertyId, widgetId, zIndex = null) {

15 | this._Tawk = this.#init(propertyId, widgetId, zIndex);
| ^
16 | }
17 |
18 | #init(propertyId, widgetId, zIndex) {

Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-class-properties (https://git.io/vb4yQ) to the 'plugins' section to enable parsing.

Incompatible with react@17x

I am getting same error with

npm install tawkto-react --save

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree   
npm ERR!
npm ERR! While resolving:[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^17.0.1" from the root project      
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.13.1" from [email protected]
npm ERR! node_modules/tawkto-react
npm ERR!   tawkto-react@"*" from the root project     
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\xxx\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxx\AppData\Local\npm-cache\_logs\2021-11-17T13_12_47_983Z-debug.log

Chat widget choice

Hello ! Thank you for your work.
Do you think it's possible to add the possibility to select the chat widget ? Because I have multiples chat widget for different pages & situation, like error pages that I want the error chat widget. Do you see ?

Regards

Style the TawkTo Iframe

Hi,
Is there a way to customize the style of the TawkTo because is in an iframe from what I can see and w/o any prop or something it's kinda not doable...

Thanks :)

Not working

There is not enough information of how to implement this chat, also. following your functional component, it still not working useEffect shows as empty in the devtools.

help me in react tsx

Could not find a declaration file for module 'tawkto-react'. '/var/www/pterodactyl/node_modules/tawkto-react/src/index.js' implicitly has an 'any' type.

Error when trying to install on react 17.0.2

Command:
npm install tawkto-react --save

Response:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.13.1" from [email protected]
npm ERR! node_modules/tawkto-react
npm ERR!   tawkto-react@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See C:\Users\xxxxxx\AppData\Local\npm-cache\eresolve-report.txt for a full report.  

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxxxxx\AppData\Local\npm-cache\_logs\2021-11-12T13_17_00_073Z-debug.log

Does this work on local?

Did you get this working on your local setup?

I can see a number of scripts being loaded.

image

and I can see that an iframe has been inserted on the bottom right, exactly where the widget should first show up.

image

But nothing actually does show up.

PS: This is probably nothing to do with the wrapper, but more to do with Tawkto itself.

Doesn't work

Nothing shows up. It's like it's not executing any code at all!

Error when trying to install on react@"^17.0.1"

I am getting same error with

npm install tawkto-react --save

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree   
npm ERR!
npm ERR! While resolving:[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^17.0.1" from the root project      
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.13.1" from [email protected]
npm ERR! node_modules/tawkto-react
npm ERR!   tawkto-react@"*" from the root project     
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\xxx\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxx\AppData\Local\npm-cache\_logs\2021-11-17T13_12_47_983Z-debug.log

typescript support

I am trying to use it in react with typescript, but I am getting an error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.