-
Notifications
You must be signed in to change notification settings - Fork 3
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
Build fails after updating to v4.22.0 #5
Comments
Hi @itsnorbertkalacska , sdk does not support
|
It does work this way, however it seems like the type definitions weren't updated. I need to disable TS for it to work, TS complains about it. |
Also we've been using |
We also saw the same issue with |
Thanks for your feedback ! Agora SDK only export one default variable "AgoraRTC“,and AREA, RemoteStreamFallbackType ... is an attribute of AgoraRTC. At previous SDK, we only provide umd format file even if you are using “import ...” (es6 syntax) to use SDK. So: why Because webpack/vite plugin transformed it, and fetch Let me show you a negative example: SO, use If you insist to use import AREAS instead of code : check demo: https://github.com/AgoraIO/agora-rtc-web/blob/main/projects/quick-demo-react/src/App.tsx Note: Don't use esm and esm-bundler at one project. |
AgoraRTC SDK version
4.22.0
Fail Rate
100%
Link to minimal reproduction
https://github.com/itsnorbertkalacska/Agora-Bug-Repro
Steps to reproduce
agora-rtc-sdk-ng
v4.21.0
AREAS
and / orRemoteStreamFallbackType
from the packageimport { AREAS } from 'agora-rtc-sdk-ng'
v4.22.0
fromv4.21.0
What is expected?
The build succeeds just as it did previously.
What is actually happening?
Nothing was mentioned or reported in the release notes about changing this export. Also the type definitions are there so TS does not pick up this error however build fails.
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: