Skip to content

Regression - unable to use RSDoctor #1455

Description

@ilteoood

Describe the bug

Unable to use the RSDoctor plugin, due to the way in which the Babel plugin is configured.

This is the configuration of the resolve loader passed to rsdoctor:

{
  conditionNames: [ 'loader', 'require', 'node' ],
  exportsFields: [ 'exports' ],
  mainFields: [ 'loader', 'main' ],
  extensions: [ '.js' ],
  mainFiles: [ 'index' ],
  fallback: {
    'babel-loader': '/Users/ilteoood/Documents/git/health-app/hse-health-app/node_modules/babel-loader/lib/index.js'
  }
}

And this is the error we see:

error Given napi value is not an array on NapiResolveOptions.fallback.
Error: Given napi value is not an array on NapiResolveOptions.fallback
    at interceptLoader (file:///.../@rsdoctor/core/dist/inner-plugins/utils/loader.js:45:28)

The fallback definition for RSDoctor is the following:

Image

While this is the signature for the rspack:

Image

I suggest to align the value of the dictionary to be an array to satisfy both.

System Info

info Fetching system and libraries information...
System:
  OS: macOS 26.6.2
  CPU: (12) arm64 Apple M3 Pro
  Memory: 802.23 MB / 18.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 24.17.0
    path: /Users/ilteoood/.local/state/fnm_multishells/24255_1788867864843/bin/node
  Yarn: Not Found
  npm:
    version: 11.13.0
    path: /Users/ilteoood/.local/state/fnm_multishells/24255_1788867864843/bin/npm
  Watchman:
    version: 2026.07.27.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/ilteoood/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.5
      - iOS 26.5
      - macOS 26.5
      - tvOS 26.5
      - visionOS 26.5
      - watchOS 26.5
  Android SDK:
    API Levels:
      - "32"
      - "33"
      - "34"
      - "35"
      - "36"
      - "37"
    Build Tools:
      - 30.0.3
      - 34.0.0
      - 35.0.0
      - 36.0.0
      - 36.0.0
      - 36.0.0
      - 36.1.0
      - 36.1.0
      - 37.0.0
    System Images:
      - android-36.1 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2026.1 AI-261.26222.65.2613.16025427
  Xcode:
    version: 26.6/17F113
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.19
    path: /usr/bin/javac
  Ruby:
    version: 3.4.3
    path: /Users/ilteoood/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.2.0
    wanted: 20.2.0
  react:
    installed: 19.2.3
    wanted: 19.2.3
  react-native:
    installed: 0.86.3
    wanted: 0.86.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

info React Native v0.87.1 is now available (your project is running on v0.86.3).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.87.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.86.3&to=0.87.1
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".

Re.Pack Version

5.2.5

Reproduction

Is it needed?

Steps to reproduce

  • Init a fresh project
  • install and try to use rsdoctor

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:newNew issue, not reviewed by the team yet.type:bugA bug report.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions