react-native-community / releases

React Native releases
https://github.com/facebook/react-native/
1.5k stars 407 forks source link

`--npm` on new template project missing `performance.now` in runtime #252

Closed lunaleaps closed 2 years ago

lunaleaps commented 2 years ago

Version

0.66.0-rc.2

Developer Environment

Intel, macOS..

Issue and Reproduction Steps

Steps to repro

In terminal

$ npx react-native init YARN662 --version 0.66.0-rc2
$ npx react-native init NPM662 --npm --version 0.66.0-rc2

# This works
$ cd YARN662 && npx react-native run-android # or run-ios

# This doesn't work
$ cd NPM662 && npx react-native run-android # or run-ios

Here is how the --npm flag is used in react-native-cli: https://github.com/react-native-community/cli/blob/641b21f583c97e3d48ce87d5fe804f42db92fa5c/packages/cli/src/commands/init/init.ts#L213

Attempting diffs of node_modules

diff RN662/node_modules NPM662/node_modules diff -r RN66RC2/node_modules/react-native NPM662/node_modules/react-native

Outstanding questions -- to be investigated

  1. Is this issue unique to 0.66.0? 0.66.0-rc.2?
lunaleaps commented 2 years ago

Verified that this is only happening in 0.66. I will be moving this issue to react-native repo

lunaleaps commented 2 years ago

Moving this issue to https://github.com/facebook/react-native/issues/32224