profile
viewpoint

Ask questions"export 'default' (imported as 'AgoraRTC') was not found in 'agora-rtc-sdk-ng'

Describe the bug

When using webpack one can not access the exported AgoraRTC

SDK Version: latest

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Additional context

I have not been able to run the examples using NPM because of the issue.

AgoraIO-Community/AgoraWebSDK-NG

Answer questions jessepinho

I'm having the exact same issue. When I have this code at the top of one of my JS files:

import AgoraRTC from "agora-rtc-sdk-ng";

...I get the same error as the original poster (using agora-rtc-sdk-ng 4.5.0). Any ideas?

useful!
source:https://uonfu.com/
Github User Rank List