Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.76.2 yarn install gives @react-native-mac/virtualized-lists@npm:0.76.2: No candidates found #2282

Open
dngrhm opened this issue Nov 15, 2024 · 6 comments
Labels
bug Something isn't working Needs: Triage 🔍

Comments

@dngrhm
Copy link

dngrhm commented Nov 15, 2024

Environment

react-native -v:
npm ls react-native-macos:
node -v: v22.6.0
npm -v: 10.8.2
yarn --version: 4.4.0
xcodebuild -version:Xcode 16.1 - Build version 16B40

Steps to reproduce the bug

  1. Update package.json "react-native-macos": "0.76.2"
  2. run yarn install or npm install
  3. Observe error about @react-native-mac/[email protected]
  4. Check npmjs to observe the latest version is 0.76.0

react-native-macos package version depends on unreleased version 0.76.2 of @react-native-mac/virtualized-lists. There is a 0.76.2 version of @react-native/virtualized-lists but not @react-native-mac/virtualized-lists

Expected Behavior

yarn or npm install succeeds

Actual Behavior

yarn and npm install fail

Reproducible Demo

any react-native-macos project

Additional context

No response

@dngrhm dngrhm added the bug Something isn't working label Nov 15, 2024
@dngrhm
Copy link
Author

dngrhm commented Nov 15, 2024

This also causes a failure in the getting started docs If you don't force 0.71 at the beginning.

npx react-native-macos-init
Reading application name from package.json…
Reading react-native version from node_modules…
Reading react-native-macos version from node_modules…
Latest matching version of react-native-macos for [email protected] is [email protected].
Installing react-native-macos@^0.76.0-0…
Command failed: npm install --save --silent "react-native-macos@^0.76.0-0" Error: Command failed: npm install --save --silent "react-native-macos@^0.76.0-0"
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:890:11)
at execSync (node:child_process:962:15)
at /.npm/_npx/20f1505fae2cef5b/node_modules/react-native-macos-init/lib-commonjs/cli.js:228:42
at Generator.next ()
at fulfilled (/.npm/_npx/20f1505fae2cef5b/node_modules/react-native-macos-init/lib-commonjs/cli.js:11:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 1,
signal: null,
output: [ null, , ],
pid: 23646,
stdout: ,
stderr:
}

@Saadnajmi
Copy link
Collaborator

Oof, thanks for the report. I'll try to get this fixed early next week. Meanwhile I think just use 0.76.0

@Yajur-Grover
Copy link

Hit the same issue when trying to bump clipboard to 0.76.2:

PS C:\new-account-repos\clipboard> yarn install
➤ YN0000: · Yarn 4.1.1
➤ YN0000: ┌ Resolution step
➤ YN0082: │ @react-native-mac/virtualized-lists@npm:0.76.2: No candidates found
➤ YN0000: └ Completed in 1s 219ms
➤ YN0000: · Failed with errors in 1s 240ms

@Meryldominguez
Copy link

Meryldominguez commented Nov 20, 2024

also having this issue, even when forcing certain packages to be older versions and with a fresh node_modules install

package.json:

 "dependencies": {
   ...
    "react-native": "0.76.2",
   ...
  },
  "devDependencies": {
   ...
    "@react-native-mac/virtualized-lists":"0.76.0",
    "react-native-macos": "0.76.0",
    ...
  },

terminal readout:

meryldominguez@Ourania appName % npx react-native-macos-init --verbose=true
Reading application name from package.json…
Reading react-native version from node_modules…
Reading react-native-macos version from node_modules…
Latest matching version of react-native-macos for [email protected] is [email protected].
Upgrading to react-native-macos@^0.76.0-0…
npm error code ETARGET
npm error notarget No matching version found for @react-native-mac/[email protected].
npm error notarget In most cases you or one of your dependencies are requesting
npm error notarget a package version that doesn't exist.
npm error A complete log of this run can be found in: /Users/meryldominguez/.npm/_logs/2024-11-20T13_31_11_208Z-debug-0.log
Command failed: npm install --save "react-native-macos@^0.76.0-0" Error: Command failed: npm install --save "react-native-macos@^0.76.0-0"
    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at checkExecSyncError (node:child_process:882:11)
    at execSync (node:child_process:954:15)
    at /Users/meryldominguez/.npm/_npx/20f1505fae2cef5b/node_modules/react-native-macos-init/lib-commonjs/cli.js:228:42
    at Generator.next (<anonymous>)
    at fulfilled (/Users/meryldominguez/.npm/_npx/20f1505fae2cef5b/node_modules/react-native-macos-init/lib-commonjs/cli.js:11:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 51625,
  stdout: null,
  stderr: null
}

EDITED TO SAY: Changing react-native to 0.75.2 works temporarily

@DanielSRS
Copy link

DanielSRS commented Nov 20, 2024

@Saadnajmi Tried 0.76.0 as you suggested with: npx react-native-macos-init --version 0.76.0

but while it inits the project succesfully:

I have no issues building 0.75 on the same machine.

@Saadnajmi
Copy link
Collaborator

Thanks for the other bug, I'll look at both today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

5 participants