-
Notifications
You must be signed in to change notification settings - Fork 25k
Closed
Labels
DXIssues concerning how the developer experience can be improved.Issues concerning how the developer experience can be improved.Impact: BugThe issue represents a bug somewhereThe issue represents a bug somewhereIssue: Author Provided ReproThis issue can be reproduced in Snack or an attached project.This issue can be reproduced in Snack or an attached project.LogBoxRN TeamStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.p: FacebookPartner: FacebookPartner: Facebook
Description
Description
Overview
If there's an error when evaluating a module, the app crashes and the stack trace is not reported in the console:
Expectation is that the app shows a LogBox with a code frame to the source of the issue, or at least a redbox with the error message and stack trace, and the console includes the stack trace so you can find the source of the problem.
Version
0.70
Output of npx react-native info
❯ npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 12.5
CPU: (10) arm64 Apple M1 Max
Memory: 3.51 GB / 64.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.7.0 - ~/.nvm/versions/node/v18.7.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v18.7.0/bin/yarn
npm: 8.15.0 - ~/.nvm/versions/node/v18.7.0/bin/npm
Watchman: 20220829 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 13.4/13F17a - /usr/bin/xcodebuild
Languages:
Java: 11.0.16.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.5 => 0.69.5
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps to reproduce
- Clone a new app
- Render any component with
propTypes:
import {ViewPropTypes} from 'react-native';
const MyView = () => {
return <Text>Hello World</Text>;
};
MyView.propTypes = ViewPropTypes;
//...
// In the App.js componet:
<MyView>
Snack, code example, screenshot, or link to a repository
Above
leotm
Metadata
Metadata
Assignees
Labels
DXIssues concerning how the developer experience can be improved.Issues concerning how the developer experience can be improved.Impact: BugThe issue represents a bug somewhereThe issue represents a bug somewhereIssue: Author Provided ReproThis issue can be reproduced in Snack or an attached project.This issue can be reproduced in Snack or an attached project.LogBoxRN TeamStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.p: FacebookPartner: FacebookPartner: Facebook
