upgrade-support icon indicating copy to clipboard operation
upgrade-support copied to clipboard

Is packageManager removed now from version 0.76.4 onwards?

Open jerinjohnk opened this issue 10 months ago • 4 comments

Environment

info Fetching system and libraries information...
(node:8794) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
System:
  OS: macOS 15.2
  CPU: (8) arm64 Apple M2
  Memory: 304.39 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.13.0
    path: ~/.nvm/versions/node/v22.13.0/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v22.13.0/bin/yarn
  npm:
    version: 11.0.0
    path: ~/.nvm/versions/node/v22.13.0/bin/npm
  Watchman:
    version: 2024.12.02.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/jerin/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK:
    API Levels:
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 33.0.1
      - 34.0.0
      - 35.0.0
    System Images:
      - android-35 | Google Play ARM 64 v8a
      - android-35 | Google Play Intel x86_64 Atom
    Android NDK: 26.1.10909125
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12700392
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby:
    version: 3.3.5
    path: /Users/jerin/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.5
    wanted: 0.76.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Things I’ve done to figure out my issue

  • [x] I used upgrade-helper to do my upgrade. https://react-native-community.github.io/upgrade-helper/?from=0.76.3&to=0.76.5

Upgrading version

0.76.4

Description

Till version 0.76.4 we had "packageManager": "[email protected]" mentioned in package.json. But this has been deleted when upgrading to 0.76.4 and later versions. Should we use the default Yarn Classic (1.x) from 0.76.4? Are we supposed to run corepack disable now and then use yarn?

Reproducible demo

https://react-native-community.github.io/upgrade-helper/?from=0.76.3&to=0.76.5 Here, both "packageManager": "[email protected]" and .yarnrc.yml files are deleted.

jerinjohnk avatar Jan 08 '25 07:01 jerinjohnk

+1

So?? why is this? any problem with yarn v3?

joaquinvaz avatar Apr 04 '25 19:04 joaquinvaz

I'm also trying to find an explanation or the commit and pull request related to this. It's confusing that they just removed this without providing any info.

Is it optional to remove? What is the impact of keeping or removing it?

eduardo-santos-tribia avatar Apr 23 '25 12:04 eduardo-santos-tribia

The .yarnrc.yml file is also removed with the version 0.78+ too. I wonder if that's an optional removal or not.

emirariemir avatar May 30 '25 11:05 emirariemir

I struggled to find the reason why both "packageManager": "[email protected]" and .yarnrc.yml files were deleted but it might have something to do with yarn 2+ not being well received.

I recommend switching the package manager to npm or pnpm going forwards.

scosmanagraz avatar Aug 14 '25 19:08 scosmanagraz

Does anyone have the answer to this? Is it optional?

ezescigo avatar Oct 02 '25 10:10 ezescigo

I have just migrated RN from 0.72.17 to 0.77.3 and the upgrade helper tell me to remove "packageManager": "[email protected]" and .yarnrc.yml, too. If I did not remove it and use yarn 3, I can't build android project. If I use yarn 1.22.22, I can build project successfully. But due to remove it, now my CICD broke, the CICD still run in yarn 3 and I can't force it to use yarn 1. Anyone has the same issue?

DawnNguyenAhiho avatar Oct 06 '25 10:10 DawnNguyenAhiho

@DawnNguyenAhiho Had upgraded to "react-native": "0.76.4" with "packageManager": "[email protected]", and it was working fine in that version.

jerinjohnk avatar Oct 06 '25 10:10 jerinjohnk

@jerinjohnk how about 0.77.3 I have to use it because I'm trying to adhere Google Play policy that require every app to support 16KB page size

DawnNguyenAhiho avatar Oct 06 '25 10:10 DawnNguyenAhiho