Fail to Compile 'telegraf' on React-Native

I am using Expo CLI to create my own app. I tried to call APIs from telegraf, which is a Telegram API. However, telegraf makes the app fail to compile. I have tried on Web and iOS both before and after ejecting the Expo CLI.

Error Message: ```
Can’t import the named export ‘Readable’ from non EcmaScript module (only default export is available)

  Expo CLI 3.27.4 environment info:
      OS: Windows 10 10.0.18362
      Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
      npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD
      expo: ~38.0.8 => 38.0.10
      react: ~16.11.0 => 16.11.0
      react-dom: ~16.11.0 => 16.11.0
      react-native: ~0.62.2 => 0.62.2
      react-native-web: ~0.11.7 => 0.11.7
    Expo Workflow: bare

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.