Skip to content

Bridgeless mode: Reflect, Proxy doesn't exist #43523

Closed

Description

@farwayer

Description

After enabling bridgeless mode Reflect, Proxy became unavailable for some season

Steps to reproduce

  1. default project init
  2. enabled new arch
  3. enable bridgeless mode
  4. add Reflect/Proxy reference: new Proxy({}, {}) for example

React Native Version

0.73.6

Affected Platforms

Runtime - Android, Runtime - iOS

Areas

Bridgeless - The New Initialization Flow

Output of npx react-native info

System:
  OS: Linux
  CPU: x64 Intel
  Memory: 3.89 GB / 15.31 GB
Binaries:
  Node:
    version: 21.7.0
  Yarn:
    version: 1.22.21
  npm:
    version: 10.5.0
  Watchman: Not Found
SDKs:
  Android SDK:
    Android NDK: 25.2.9519653
IDEs:
  Android Studio: Not Found
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 3.0.6
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.6
    wanted: 0.73.6
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Stacktrace or Logs

(NOBRIDGE) ERROR  ReferenceError: Property 'Proxy' doesn't exist

This error is located at:
    in Section (created by App)
    in RCTView (created by View)
    in View (created by App)
    in RCTView (created by View)
    in View (created by ScrollView)
    in RCTScrollView (created by ScrollView)
    in ScrollView (created by ScrollView)
    in ScrollView (created by App)
    in RCTView (created by View)
    in View (created by App)
    in App
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in AwesomeProject(RootComponent)

Reproducer

https://github.com/farwayer/rn-bridgeless-no-proxy

Screenshots and Videos

No response

Activity

  1. added
    Type: New Architecture
    on Mar 17, 2024
  2. added
    Issue: Author Provided Repro
    Resolution: PR Submitted
    and removed on Mar 18, 2024
  3. cortinico commented on Mar 19, 2024

    @cortinico
    Contributor

    Thanks for reporting this @farwayer, we'll address this in 0.74

  4. mrousavy commented on Mar 25, 2024

    @mrousavy
    Contributor

    Not sure if this is supported by Hermes, but WeakRef also doesn't work.
    I'm guessing this is either related to this issue, or just not yet implemented :)

    (rn 0.74 rc)

  5. fkgozali commented on Mar 27, 2024

    @fkgozali
    Contributor

    FYI, this should be fixed with #43538. We're gonna pick this into 0.74-stable branch

  6. cortinico commented on Apr 3, 2024

    @cortinico
    Contributor

    Closing as this has been fixed in 0.74. It's currently available in RC6

  7. added
    Resolution: Fixed
    and removed
    Resolution: PR Submitted
    on Apr 3, 2024
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

    Issue: Author Provided ReproResolution: FixedType: New Architecture

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions