You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating a bundle, with or without minification, there is an error in the optimized code generated for the bundle after modifying the elements within the array and logging them.
If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.
To reproduce:
Use the default TypeScript app created with: npx @react-native-community/cli@latest init MyApp
Modify MyApp/App.tsx to insert this code just prior to the return statement:
Do you want to request a feature or report a bug?
BUG
What is the current behavior?
When generating a bundle, with or without minification, there is an error in the optimized code generated for the bundle after modifying the elements within the array and logging them.
If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can
yarn install
andyarn test
.To reproduce:
Use the default TypeScript app created with:
npx @react-native-community/cli@latest init MyApp
Modify MyApp/App.tsx to insert this code just prior to the return statement:
Build a bundle for Android with:
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output index.android.bundle
In the index.android.bundle file search for TEST_ARRAY_VALUES to find the generated code.
I am seeing:
This is incorrect because the actual contents of the array changed in the for loop.
What is the expected behavior?
After increasing the value of each element in the array by 6000, the current values should be used.
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
metro.config.js
Metro is bundled with "react-native": "0.75.4".
"metro-runtime": "^0.80.3",
"metro-source-map": "^0.80.3",
node --version
v18.20.3
npm --version
10.7.0
Mac OS 14.6.1
The text was updated successfully, but these errors were encountered: