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

Got error when trying to install @webex/widgets #214

Open
Bhavik1363 opened this issue Sep 13, 2023 · 5 comments
Open

Got error when trying to install @webex/widgets #214

Bhavik1363 opened this issue Sep 13, 2023 · 5 comments

Comments

@Bhavik1363
Copy link

I am trying to install the package from the following command,
npm i @webex/widgets

It shows the package installed successfully.

But when importing the WebexMeetingsWidget component into the app.js it throws almost 82 errors.

Screenshot from 2023-09-13 16-45-19

I am using the React application with react^18.2.0

@Junior743
Copy link

Junior743 commented Oct 30, 2023

I have a similar problem, when a try to run: npx install-peerdeps @webex/widgets
I receive this result:
image

I think the problem is the react version. @webex/widgets are trying to install react 17, but I already using react 18.

And when I try to run: npm i @webex/widgets
I receive this result, and the react version error becomes more evident:
image

@carrubbasamuel
Copy link

I have the same problem

  • Next version: 14.x.x
  • react :18.2.0

@sreenara
Copy link
Contributor

sreenara commented Jul 9, 2024

Hey folks. Thanks for reporting these issues and providing feedback. We'll get someone to look into this soon.
@Kesari3008 do any of these errors seem familiar and similar to what we observed as we tried to upgrade our tooling?

@Kesari3008
Copy link
Contributor

Hey folks. Thanks for reporting these issues and providing feedback. We'll get someone to look into this soon. @Kesari3008 do any of these errors seem familiar and similar to what we observed as we tried to upgrade our tooling?

@sreenara Yes we have seen a similar error while upgrading our tooling but only once. Hence I cannot say for sure why it happens. One possible reason can be mismatch of React version as Widgets currently uses React 17. One way to resolve this is I remember that I installed querystring, crypto, os-browserify modules to resolve these polyfill errors. As a workaround, that's something which can be tried. In the meantime, I will check try this out to on my end again and find it's proper solution.

@sreenara
Copy link
Contributor

@Bhavik1363 @Junior743 @carrubbasamuel are you'll able to use React 17.x as a workaround for now? We will be working towards upgrading widgets to React 18 in the future.

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

5 participants