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

Error in building the plugin #15

Open
razbikel opened this issue Oct 14, 2021 · 6 comments
Open

Error in building the plugin #15

razbikel opened this issue Oct 14, 2021 · 6 comments

Comments

@razbikel
Copy link

razbikel commented Oct 14, 2021

Hi,
I would like to ask you some help in using this plugin:
When trying to build the plugin I get this error -

Screen Shot 2021-10-12 at 8 14 06

I tried to fix this by define the set and get methods in src/services/LocalCacheClient.js as public, and the plugins was built.
However, we are having difficulties in enabling the coach mode – when supervisor tries to talk privately to an agent (without the customer being able to hear) both the agent and the customer can hear the supervisor.
For enabling the coach mode with the agent - the supervisor turns on the right button and unmute himself with the left button. Is this the right way to use this plugin for coach mode?
Thanks.

@ktalebian
Copy link
Collaborator

@razbikel, can you please provide the output of these two commands?

npm ls @babel/plugin-proposal-private-methods

Specifically, I'm expecting to see

plugin-supervisor-barge-coach@1.0.0 /Users/ktalebian/Projects/github/twilio-professional-services/plugin-supervisor-barge-coach
└─┬ flex-plugin-scripts@4.1.3
  └─┬ flex-plugin-webpack@4.1.3
    ├─┬ @babel/preset-env@7.14.9
    │ └── @babel/plugin-proposal-private-methods@7.14.5 
    └─┬ babel-preset-react-app@10.0.0
      └─┬ @babel/preset-env@7.12.1
        └── @babel/plugin-proposal-private-methods@7.14.5  dedupe

And I am expecting this directory to exists:

ls node_modules/@babel/plugin-proposal-private-methods

@razbikel
Copy link
Author

razbikel commented Nov 7, 2021

Hi, the output of executing these commands:

plugin-supervisor-barge-coach@1.0.0 /Users/razb/Desktop/plugins/plugin-supervisor-barge-coach
└─┬ flex-plugin-scripts@4.1.3
└─┬ flex-plugin-webpack@4.1.3
├─┬ @babel/preset-env@7.14.9
│ └── @babel/plugin-proposal-private-methods@7.14.5
└─┬ babel-preset-react-app@10.0.0
└─┬ @babel/preset-env@7.12.1
└── @babel/plugin-proposal-private-methods@7.14.5 deduped

Macbook-RazBikel:plugin-supervisor-barge-coach razb$ ls node_modules/@babel/plugin-proposal-private-methods
LICENSE README.md lib package.json

@ktalebian
Copy link
Collaborator

@razbikel mmm, what version of Node do you have? i.e. node -v?

@razbikel
Copy link
Author

razbikel commented Nov 8, 2021

@ktalebian node version: v14.17.5

@razbikel
Copy link
Author

@ktalebian
Hi, do you have any updates?

@ktalebian
Copy link
Collaborator

@razbikel I do not, I tried to replicate this on a Windows and couldn't do so. I would recommend a googling of class private methods are not enabled and see what comes up. The @babel/plugin-proposal-private-methods is a plugin that enables this and from your npm ls it looks like it's already there, but why it is not enabled, I do not know.

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

2 participants