Undefined method `map' for nil:NilClass - react-native bundle android

Hi there. Have a problem with performing react-native bundle command for android
logs doesn’t give any clear errors except this one undefined method map’ for nil:NilClass`

locally on mac this lane works fine

please point me on what I have missed

yarn return err code 137 which might be related to memory limit?

config.yml

build-android-development:
    docker:
      - image: circleci/android:api-29-node

    working_directory: ~/development-android

    steps:
      - checkout

      - restore_cache: *restore-node-cache
      - run: *install-node-dependencies
      - save-cache: *save-node-cache
      - run: yarn patch-packages

      - run: yarn build --env=development
      - run: sudo yarn global add react-native-cli

      - run: bundle install --path .bundle
      - run: bundle update
      - run: bundle update fastlane
      - run: bundle exec fastlane env
      - run: bundle exec fastlane update_plugins
      - run: bundle exec fastlane android build --verbose environment:development build_number:$CIRCLE_BUILD_NUM api_token:$APP_CENTER_TOKEN
      - persist_to_workspace:
          root: ~/development-android
          paths:
            - android/app/build/outputs/apk

fastfile

private_lane :bundleAndroid do |options|
  ## For some reason, the fastlane project runs shell commands from the fastlane directory..
  Dir.chdir("..") do
    build_type = options[:build_type]
    sh("cd android && ./gradlew clean && cd ..")
    sh("mkdir -p android/app/build/generated/assets/react/#{build_type}/")
    sh("mkdir -p android/app/build/generated/res/react/#{build_type}/")
    sh("yarn react-native bundle --entry-file ./compiled/typescript/src/index.js --platform android --bundle-output android/app/build/generated/assets/react/#{build_type}/index.android.bundle --assets-dest android/app/build/generated/res/react/#{build_type}/")
  end
end

errors

ERROR [2022-07-21 07:26:33.98]: Error finding relevant GitHub issues: undefined method `map' for nil:NilClass
DEBUG [2022-07-21 07:26:33.98]: All plugins are up to date
bundler: failed to load command: fastlane (/home/circleci/development-android/.bundle/ruby/2.6.0/bin/fastlane)
Traceback (most recent call last):
	48: from /home/circleci/.rubies/ruby-2.6.1/bin/bundle:23:in `<main>'
	47: from /home/circleci/.rubies/ruby-2.6.1/bin/bundle:23:in `load'
	46: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/exe/bundle:37:in `<top (required)>'
	45: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/lib/bundler/friendly_errors.rb:128:in `with_friendly_errors'
	44: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/exe/bundle:49:in `block in <top (required)>'
	43: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/lib/bundler/cli.rb:25:in `start'
	42: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	41: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/lib/bundler/cli.rb:31:in `dispatch'
	40: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	39: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	38: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	37: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/lib/bundler/cli.rb:477:in `exec'
	36: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/lib/bundler/cli/exec.rb:23:in `run'
	35: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/lib/bundler/cli/exec.rb:58:in `kernel_load'
	34: from /home/circleci/.rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.2.26/lib/bundler/cli/exec.rb:58:in `load'
	33: from /home/circleci/development-android/.bundle/ruby/2.6.0/bin/fastlane:23:in `<top (required)>'
	32: from /home/circleci/development-android/.bundle/ruby/2.6.0/bin/fastlane:23:in `load'
	31: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/bin/fastlane:23:in `<top (required)>'
	30: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
	29: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
	28: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
	27: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	26: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
	25: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	24: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	23: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	22: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
	21: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	20: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	19: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	18: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	17: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	16: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	15: from Fastfile:280:in `block (2 levels) in parsing_binding'
	14: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	13: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
	12: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
	11: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	10: from Fastfile:88:in `block in parsing_binding'
	 9: from Fastfile:88:in `chdir'
	 8: from Fastfile:93:in `block (2 levels) in parsing_binding'
	 7: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/fast_file.rb:216:in `sh'
	 6: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/fast_file.rb:222:in `sh'
	 5: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
	 4: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/fast_file.rb:223:in `block in sh'
	 3: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/helper/sh_helper.rb:16:in `sh_no_action'
	 2: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
	 1: from /home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
/home/circleci/development-android/.bundle/ruby/2.6.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in `shell_error!': [!] Exit status of command 'yarn react-native bundle --entry-file ./compiled/typescript/src/index.js --platform android --bundle-output android/app/build/generated/assets/react/development/index.android.bundle --assets-dest android/app/build/generated/res/react/development/' was 137 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
yarn run v1.22.5
$ /home/circleci/development-android/node_modules/.bin/react-native bundle --entry-file ./compiled/typescript/src/index.js --platform android --bundle-output android/app/build/generated/assets/react/development/index.android.bundle --assets-dest android/app/build/generated/res/react/development/
                   

fastlane env

### Stack

| Key                         | Value                                                    |
| --------------------------- | -------------------------------------------------------- |
| OS                          | debian_based 10.10                                       |
| Ruby                        | 2.6.1                                                    |
| Bundler?                    | true                                                     |
| Git                         | git version 2.20.1                                       |
| Installation Source         | ~/development-android/.bundle/ruby/2.6.0/bin/fastlane    |
| Host                        | Debian GNU/Linux 10 debian_based 10.10 (5.13.0-1023-aws) |
| Ruby Lib Dir                | ~/.rubies/ruby-2.6.1/lib                                 |
| OpenSSL Version             | OpenSSL 1.1.1d  10 Sep 2019                              |
| Is contained                | false                                                    |
| Is homebrew                 | false                                                    |
| Is installed via Fabric.app | false                                                    |


### System Locale

| Variable | Value   |   |
| -------- | ------- | - |
| LANG     | C.UTF-8 | ✅ |
| LC_ALL   |         |   |
| LANGUAGE |         |   |

please look at images in these links there some logs