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

Update for Flex UI 2.0 #18

Open
JasonPan opened this issue Jan 13, 2023 · 4 comments
Open

Update for Flex UI 2.0 #18

JasonPan opened this issue Jan 13, 2023 · 4 comments

Comments

@JasonPan
Copy link

Thanks for this great example - any chance we can get an updated version of this for Flex UI 2.0? I'm trying myself but would be great to have a sample to start with

@JasonPan
Copy link
Author

JasonPan commented Jan 13, 2023

Actually, I figured out, leaving it here if it helps anyone

  1. Follow the plug migration steps here
  2. Bump react, react-dom and react-test-renderer version to 17.0.2
  3. Bump @twilio/flex-ui to 2.0.2
  4. Change in MarkdownMessageBubble.jsx:
// import { Utils, withTheme } from '@twilio/flex-ui';
import { Utils } from '@twilio/flex-ui-core';
import { withTheme } from '@twilio/flex-ui';
  1. Deploy using the $ twilio flex:plugins:deploy tool (follow steps here)

@vinirico-fcard
Copy link

vinirico-fcard commented Mar 13, 2023

Hi, JasonPan, how did you manage to get this working with Flex UI 2.0?

I followed plug migration, but what command I would use to bump to specific version of these packages? Could you share which version of node, twilio cli and flex plugin cli are you using too? I receive different warnings and errors depending on the version I am using

@andresmmujica
Copy link

@vinirico-fcard I haven't done it myself but Jason probably is referring to update the version at the corresponding lines in the package.json file

@vinirico-fcard
Copy link

@andresmmujica , thank you Andres! I will give it a try.

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

3 participants