react-native-zoomable-view icon indicating copy to clipboard operation
react-native-zoomable-view copied to clipboard

yarn add command fails

Open ktjd123 opened this issue 3 years ago • 21 comments

yarn command fails with

error An unexpected error occurred: "expected hoisted manifest for \"@dudigital/react-native-zoomable-view#react-native#@react-native-community/cli#@react-native-community/cli-hermes\""

ktjd123 avatar Jun 12 '21 14:06 ktjd123

Works fine with 1.0.16.

I think this issue is related to ^1.1.

ktjd123 avatar Jun 12 '21 15:06 ktjd123

@ktjd123 can you please provide more details and an example? when does this happen? during yarn start, yarn android or yarn install?

And what react native version are you using?

SimonErich avatar Jun 12 '21 15:06 SimonErich

@SimonErich Thank you for fast reply. with install

The command is

yarn add @dudigital/react-native-zoomable-view

the result is

yarn add @dudigital/react-native-zoomable-view
yarn add v1.22.5
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning " > @os-team/[email protected]" has incorrect peer dependency "react-native@>=0.64".
warning " > [email protected]" has unmet peer dependency "prop-types@*".
warning " > [email protected]" has unmet peer dependency "query-string@*".
warning " > [email protected]" has unmet peer dependency "react-native-windows@*".
warning " > [email protected]" has unmet peer dependency "react-native-windows@>=0.62.0".
warning " > [email protected]" has unmet peer dependency "react-dom@^0.14 || ^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0".
warning "@dudigital/react-native-zoomable-view > [email protected]" has incorrect peer dependency "[email protected]".
warning "@dudigital/react-native-zoomable-view > react-native > react-native-codegen > [email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
error An unexpected error occurred: "expected hoisted manifest for \"@dudigital/react-native-zoomable-view#react-native#@react-native-community/cli#@react-native-community/cli-hermes\"".
info If you think this is a bug, please open a bug report with the information provided in "/Users/peter/App/Artgravia/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

React's version is 16.13.1 React native's version is 0.63.4

ktjd123 avatar Jun 12 '21 15:06 ktjd123

yarn command fails with

error An unexpected error occurred: "expected hoisted manifest for \"@dudigital/react-native-zoomable-view#react-native#@react-native-community/cli#@react-native-community/cli-hermes\""

+1

harshal2030 avatar Jun 17 '21 16:06 harshal2030

yarn command fails with

error An unexpected error occurred: "expected hoisted manifest for \"@dudigital/react-native-zoomable-view#react-native#@react-native-community/cli#@react-native-community/cli-hermes\""

+1 Same problem here!

giovanesantossilva avatar Jun 17 '21 17:06 giovanesantossilva

Hello guys,

can you maybe try to delete your yarn.lock file? See: https://github.com/yarnpkg/yarn/issues/7244

I cannot reproduce it right now and I guess it is a glitch with yarn and the fact, that the first version we pushed was invalid and reverted. Sorry for that.

SimonErich avatar Jun 18 '21 13:06 SimonErich

I deleted yarn.lock and re add it , it works find, thanks

success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ @dudigital/[email protected]
info All dependencies
└─ @dudigital/[email protected]
✨  Done in 7.49s.

ariontechs avatar Jun 19 '21 04:06 ariontechs

This is what I did:

rm -rf yarn.lock node_modules
yarn
yarn add @dudigital/react-native-zoomable-view

Result:

error An unexpected error occurred: "expected hoisted manifest for \"@dudigital/react-native-zoomable-view#react-native#@react-native-community/cli#@react-native-community/cli-hermes\"".

aprilmintacpineda avatar Jun 20 '21 23:06 aprilmintacpineda

This is what I did:

rm -rf yarn.lock node_modules
yarn
yarn add @dudigital/react-native-zoomable-view

Result:

error An unexpected error occurred: "expected hoisted manifest for \"@dudigital/react-native-zoomable-view#react-native#@react-native-community/cli#@react-native-community/cli-hermes\"".

+1, still getting this error

harshal2030 avatar Jun 21 '21 10:06 harshal2030

Thanks for trying it out. Can you provide more details about your project?

Did you add react-native-zoomable-view for the first time or upgrade? Do you use Expo or a boilerplate?

Can you reproduce it locally, if you install it to a new project, that you just created with? react-native init

SimonErich avatar Jun 21 '21 11:06 SimonErich

I was installing react-native-zoomable-view for the first time in my project created using react-native init

harshal2030 avatar Jun 21 '21 11:06 harshal2030

This is what I did:

rm -rf yarn.lock node_modules
yarn
yarn add @dudigital/react-native-zoomable-view

Result:

error An unexpected error occurred: "expected hoisted manifest for \"@dudigital/react-native-zoomable-view#react-native#@react-native-community/cli#@react-native-community/cli-hermes\"".

You'll encounter this error whether your upgrading or installing it for the first time.

aprilmintacpineda avatar Jun 22 '21 02:06 aprilmintacpineda

Thanks for trying it out. Can you provide more details about your project?

Did you add react-native-zoomable-view for the first time or upgrade? Do you use Expo or a boilerplate?

Can you reproduce it locally, if you install it to a new project, that you just created with? react-native init

In my case, I got that error when I was trying to upgrade, then I tried to remove it then install it again and got the same error. The app was created with react-native init, it's not using Expo.

I tried

npx react-native init AwesomeProject
cd AwesomeProject
yarn add @dudigital/react-native-zoomable-view

and it was installed successfully.

EDIT 1:

I just tried upgrading it again on my project, and it worked.

aprilmintacpineda avatar Jun 22 '21 02:06 aprilmintacpineda

Also getting this issue. Just cloned existing project with 1.0.15 version. Tried to install modules for the first time with yarn command fails: image error An unexpected error occurred: "expected hoisted manifest for \"@dudigital/react-native-zoomable-view#react-native#@react-native-community/cli#@react-native-community/cli-hermes\"".

shevchenkona19 avatar Jun 23 '21 08:06 shevchenkona19

guys, i've made it work by first delete yarn.lock then run yarn in cmd to re-generate yarn.lock. then if you try to run it now, build would be fail with the error: error Failed to launch emulator. Reason: Emulator exited before boot.. , all you have to do is delete your current avd and create a new one. then run it again and you will be good to go

ngotrongphuc avatar Jul 02 '21 16:07 ngotrongphuc

It happens when you have yarn workspaces configuration in your project. You should remove react-native from the dependencies

zivchen avatar Jul 20 '21 11:07 zivchen

I can confirm I've got the same issue. Deleting yarn.lock and re-generating causes the same issue (and is not an acceptable solution in the first place). These are my dependencies:

"dependencies": {
    "@apollo/client": "^3.3.15",
    "@react-navigation/material-top-tabs": "^5.1.3",
    "@reduxjs/toolkit": "^1.5.1",
    "react": "16.13.1",
    "react-native": "0.63.3",
    "react-native-draggable-flatlist": "^2.6.2",
    "react-native-popup-menu": "0.15.10",
    "react-native-reanimated": "1.13.3",
    "react-native-safe-area-context": "3.2.0",
    "react-native-settings-list": "^1.8.0",
    "react-native-splash-screen": "3.0.6",
    "react-native-startup-time": "^2.0.0",
    "react-native-tab-view": "2.15.0",
    "react-native-toast-message": "^1.4.9",
    "react-native-zeroconf": "^0.13.2",
    "react-navigation-props-mapper": "^2.0.0",
    "react-redux": "^7.2.4",
    "redux-persist": "~6.0.0",
    "redux-sentry-middleware": "^0.2.2",
    "redux-thunk": "^2.3.0",
    "semver": "^7.3.5"
  },
  "devDependencies": {
    "@babel/cli": "^7.0.0",
    "@babel/core": "^7.9.0",
    "@react-native-community/eslint-config": "^2.0.0",
    "@testing-library/react-native": "^7.2.0",
    "@types/express": "^4.17.8",
    "@types/jest": "^25.2.1",
    "@types/node": "^14.14.6",
    "@types/react-native": "^0.63.30",
    "@types/react-native-zeroconf": "^0.12.0",
    "@types/react-test-renderer": "^16.9.2",
    "@types/redux-mock-store": "^1.0.2",
    "abortcontroller-polyfill": "^1.7.1",
    "apollo": "^2.32.8",
    "babel-jest": "^24.9.0",
    "babel-plugin-module-resolver": "^4.0.0",
    "cross-fetch": "^3.0.6",
    "dayjs": "^1.9.6",
    "detox": "18.6.2",
    "detox-recorder": "^1.0.151",
    "eslint": "^7.25.0",
    "eslint-config-hudl-react-native": "^0.2.0",
    "eslint-config-prettier": "^8.3.0",
    "express": "^4.17.1",
    "jest": "^24.9.0",
    "jest-circus": "^26.6.3",
    "jest-fetch-mock": "^3.0.3",
    "jest-junit": "^12.2.0",
    "jest-teamcity": "^1.9.0",
    "metro-react-native-babel-preset": "^0.59.0",
    "react-native-cli": "^2.0.1",
    "react-test-renderer": "^16.13.1",
    "redux-mock-store": "^1.5.4",
    "replace-in-file": "^6.1.0",
    "typescript": "4.2.4"
  },

Vannevelj avatar Aug 02 '21 11:08 Vannevelj

Running yarn with using `"@dudigital/react-native-zoomable-view": "1.0.16" in package.json works.

andac-ozcan avatar Aug 29 '21 13:08 andac-ozcan

If you change your react-native dependency to 0.65.1 it will work. Versions below that fail with the above error.

Vannevelj avatar Sep 07 '21 15:09 Vannevelj

in that case this is unuseable with latest expo SDK43 which is still on 0.64.3

vbylen avatar Nov 23 '21 23:11 vbylen

If you change your react-native dependency to 0.65.1 it will work. Versions below that fail with the above error. It will not work. I updated rn from 0.64.1 to 0.65.1, it gives the following error

ksielyov avatar May 13 '22 08:05 ksielyov