Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyncClient errors #46

Open
jgill-twilio opened this issue Feb 22, 2023 · 0 comments
Open

SyncClient errors #46

jgill-twilio opened this issue Feb 22, 2023 · 0 comments

Comments

@jgill-twilio
Copy link

jgill-twilio commented Feb 22, 2023

I cloned the repo, installed everything, and upgraded the plugin to flex-ui-2.0. I deployed the serverless functions. However, when I try to run twilio flex:plugins:start from the root directory, I am unable to actually interact with the UI. It renders and everything looks great, but I'm unable to update my status, click on tabs, etc.

I checked the console logs and found "Uncaught TypeError: Cannot read properties of undefined (reading 'on')
at new SyncClient (SyncClient.js:12:55)
at ./src/services/SyncClient.js (SyncClient.js:119:20)
at webpack_require (bootstrap:789:1)
at fn (bootstrap: 100:1)
at ./src/services/index.js (index.js:1:1)
at webpack_require (bootstrap:789:1)
at fn (bootstrap: 100:1)
at ./src/SupervisorBargePlugin.js (v4.js:29:1)
at webpack_require (bootstrap:789:1)
at fn (bootstrap: 100:1)
at ./src/index.js (index.js:1:1)
at webpack_require (bootstrap:789:1)
at fn (bootstrap: 100:1)
at 1 (plugin-supervisor-barge-coach.js:27168:18)
at webpack_require (bootstrap:789:1)
at bootstrap:856:1
at bootstrap:856:1"

Screenshot 2023-02-22 at 12 35 21 PM

This is specifically referring to line 12 of /src/services/syncClient.js.

Screenshot 2023-02-22 at 12 36 38 PM

I've tried deleting and reinstalling node_modules and package-lock multiple times, but I keep hitting the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant