Skip to content

Opening stack frame through /open-stack-frame endpoint is broken #1082

Description

@jbroma

Describe the bug

When an error happens and LogBox with stack is displayed, upon clicking one of the frames nothing happens - it should open code editor with a file from the stack frame.

This boils down to converting urls with webpack:// into actual file-paths

System Info

System:
OS: macOS 15.3.1
CPU: (10) arm64 Apple M1 Pro
Memory: 455.34 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.13.1
path: ~/Library/Caches/fnm_multishells/75356_1741004963962/bin/node
Yarn: Not Found
npm:
version: 10.5.2
path: ~/Library/Caches/fnm_multishells/75356_1741004963962/bin/npm
Watchman:
version: 2024.11.04.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/jbroma/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2412.12266719
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.13
path: /Users/jbroma/.jenv/shims/javac
Ruby:
version: 2.7.6
path: /Users/jbroma/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.3
wanted: 0.76.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.78.0 is now available (your project is running on v0.76.3).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.78.0
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.76.3&to=0.78.0
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".

Re.Pack Version

5.0.1

Reproduction

internal

Steps to reproduce

In tester app:

  1. Create a scenario where error happens (throw an Error in App.tsx)
  2. Run the app and wait for LogBox with the error to appear
  3. Click on first frame in the LogBox

Metadata

Metadata

Assignees

No one assigned

    Labels

    pinnedKeeps this issue or PR active and prevents it from going stale.status:confirmedThe issue has been reviewed and all necessary information is provided.type:bugA bug report.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions