react-native-zoomable-view
react-native-zoomable-view copied to clipboard
yarn add command fails
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\""
Works fine with 1.0.16.
I think this issue is related to ^1.1.
@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 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
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
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!
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.
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.
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\"".
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
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
I was installing react-native-zoomable-view for the first time in my project created using react-native init
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.
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.
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:
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\"".
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
It happens when you have yarn workspaces configuration in your project. You should remove react-native from the dependencies
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"
},
Running yarn with using `"@dudigital/react-native-zoomable-view": "1.0.16" in package.json works.
If you change your react-native
dependency to 0.65.1
it will work. Versions below that fail with the above error.
in that case this is unuseable with latest expo SDK43 which is still on 0.64.3
If you change your
react-native
dependency to0.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