Skip to content

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

Open

Description

@Bhavik1363

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

Activity

  1. Junior743 commented on Oct 30, 2023

    @Junior743

    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

  2. carrubbasamuel commented on May 1, 2024

    @carrubbasamuel

    I have the same problem

    • Next version: 14.x.x
    • react :18.2.0
  3. sreenara commented on Jul 9, 2024

    @sreenara
    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?

  4. Kesari3008 commented on Jul 12, 2024

    @Kesari3008
    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.

  5. sreenara commented on Jul 15, 2024

    @sreenara
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions