Closed jonthysell closed 4 months ago
Another question: if there isn't a matching template version for every react-native version, how is react-native CI testing that new nightlies aren't breaking new app creation? Does it just sit on a "known good" template version? Is there a way we could get that version programmatically (instead of just relying on matching version numbers)?
Okay, maybe I spoke too soon: https://github.com/facebook/react-native/commit/4e14c5eeab86a188663c2eddf301f753c317235b
@jonthysell I see that https://www.npmjs.com/package/@react-native-community/template/v/0.76.0-nightly-2024716-fa868c5 has now been published and it looks alright from a quick scan on of the contents. This shouldn't be an issue going forwards.
Tested this locally too:
➜ rn npx --yes @react-native-community/cli@next init RNNightly --version nightly --verbose
debug We couldn't find a package.json in your project. Are you sure you are running it inside a React Native project?
debug Failed to load configuration of your project. Only a subset of commands will be available.
debug Mapped: nightly -> 0.76.0-nightly-20240715-2eb7bcb8d
debug [template]: is '0.76.0-nightly-20240715-2eb7bcb8d (0.76.0)' < '0.75.0' = no, look for template in @react-native-community/template
debug [template]: you're using a nightly version of react-native
debug Template: '@react-native-community/template@nightly'
debug Initializing new project
Output seemed sane.
Please reopen is there are issues with this.
Description
For react-native-windows we're continually integrating to newer nightly versions of react-native, and have to be able to initialize new projects with those versions. This new template package doesn't appear to have matching nightly versions as the
react-native
package (the way all of the other ancillary RN packages get matching nightly versions published).Steps to reproduce
npx --yes @react-native-community/cli@latest init test3 --template react-native@0.75.0-nightly-20240618-5df5ed1a8
React Native Community Template Version
0.75.0-nightly-20240618-5df5ed1a8
Affected Platforms
Build - Windows
Output of
npx @react-native-community/cli@latest info
Stacktrace or Logs
Reproducer
https://github.com/Microsoft/react-native-windows
Screenshots and Videos
No response