Currently, I am in the process of incorporating the "agora-rtc-sdk-ng" package for live streaming with next.js and typescript.
import AgoraRTC from 'agora-rtc-sdk-ng';
However, when I try to import it, an error is thrown as shown below:
https://i.stack.imgur.com/DR61R.png
I have attempted using the next/dynamic method based on suggestions from other Stack Overflow posts, but without any success. If anyone has successfully utilized the "agora-rtc-sdk-ng" package in next.js, your help would be greatly appreciated.