question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to resolve module `./unsupportedIterableToArray` from `node_modules/@babel/runtime/helpers/slicedToArray.js`:

See original GitHub issue

Description

截屏2020-08-07 10 03 18
Unable to resolve module `./unsupportedIterableToArray` from `node_modules/@babel/runtime/helpers/slicedToArray.js`: 

None of these files exist:
  * node_modules/@babel/runtime/helpers/unsupportedIterableToArray(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
  * node_modules/@babel/runtime/helpers/unsupportedIterableToArray/index(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start
0x0

React Native version:

System:
    OS: macOS 10.15.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 182.96 MB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 10.20.0 - ~/.nvm/versions/node/v10.20.0/bin/node
    Yarn: 1.22.4 - ~/.nvm/versions/node/v10.20.0/bin/yarn
    npm: 6.14.4 - ~/.nvm/versions/node/v10.20.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.8.4 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 24, 26, 27, 28, 29
      Build Tools: 26.0.2, 26.0.3, 27.0.3, 28.0.2, 28.0.3, 29.0.2
      System Images: android-28 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 3.6 AI-192.7142.36.36.6241897
    Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_171 - /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.11.0 => 16.11.0 
    react-native: 0.62.0 => 0.62.0 
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue. When starting after running, it will prompt the above error information directly

Expected Results

It can display and run normally.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
suwu150commented, Aug 10, 2020

Sorry, I upgraded the NPM library from 3.2.0 to “@ant-design/react-native”: “4.0.0”, which solved the problem

0reactions
safaiyehcommented, Aug 10, 2020

@suwu150 glad you figured it out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve module `@babel/runtime/helpers ...
I had to remove the node_modules and npm -i . This time when I checked the node_modules the interopRequireDefault.js file was there. Share....
Read more >
Error: Cannot find module '@babel/runtime/helpers/builtin ...
When I first run beta.25, I got this error message: Unable to resolve some modules: "@babel/runtime/helpers/builtin/interopRequireDefault" in / ...
Read more >
ios bundling failed expo | The AI Search Engine You Control
I trying to build an application that enables the user to log in using the phone number I have an error "iOS Bundling...
Read more >
Cannot find module '@babel/runtime/helpers/defineProperty ...
Error: Cannot find module '@babel/runtime/helpers/defineProperty' from '/opt/gitter/gitter-webapp-staging/output/assets/js' File ...
Read more >
Module not found | Can not resolve module in react - YouTube
Your browser can't play this video. ... Module not found | Can not resolve module in react ... 21K views 1 year ago...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found