Closed yinjs closed 11 months ago
I noticed agora-rtc-sdk-ng
is bundled in agora-rtc-react
, which means you should not install the former package and you should just import all your needed names from agora-rtc-react
:
import AgoraRTC from 'agora-rtc-react'
@guoxianzhe Is this by design? If so you may update the README otherwise any internal change to agora-rtc-sdk-ng
would break your example in README.
@hyrious Thanks. Works properly after import AgoraRTC from 'agora-rtc-react'.
import AgoraRTC, { AgoraRTCProvider } from "agora-rtc-react";
@hyrious @guoxianzhe Do you think it makes more sense to treat 'agora-rtc-sdk-ng' as a peer dependency?
@yinjs please check https://github.com/AgoraIO-Extensions/agora-rtc-react/issues/146
agora-rtc-react will as a standalone SDK in the future.
What kind of problem do you need help?
Typescript error when integrating with agora-rtc-sdk-ng