yarn icon indicating copy to clipboard operation
yarn copied to clipboard

expected hoisted manifest

Open intergalactic-overlords opened this issue 6 years ago • 12 comments

Do you want to request a feature or report a bug? It's a question about an error

What is the current behavior? I have inherited a react project at my new job and when doing yarn install I get the following error: error An unexpected error occurred: "expected hoisted manifest for \"@company/project#@material-ui/core#react-dom\"".

There are multiple projects, all set up in a similar way, but there is only one that is throwing that error.

The problem is that I don't know how to interpret that error. I don't know what a hoisted manifest is (and neither does google). Not sure what is going wrong or what is expected here.

Please mention your node.js, yarn and operating system version. node: 10.5.3 - yarn: 1.15.2 - os: windows 10

intergalactic-overlords avatar May 02 '19 12:05 intergalactic-overlords

Ran into this as well.

The only way I resolved this was by deleting the lock file... which isn't ideal.

milesj avatar Oct 02 '19 18:10 milesj

the same problem.

error An unexpected error occurred: "expected hoisted manifest for "react-popopo#styled-components#@emotion/is-prop-valid"".

guanrongjia avatar Mar 20 '20 04:03 guanrongjia

I'm getting this after deleting the yarn.lock file. Any other fixes?

thekevinbrown avatar Oct 12 '20 07:10 thekevinbrown

Hello, Hopefully this might help.

We faced the same issue recently. For more context, we use yarn workspace to load some of our shared libraries. In order to fix that issue, we had to explicitly declare the list of libraries mentioned in the error in the package.json of the dependency.

ex:

  expected hoisted manifest for "react-popopo#styled-components#@emotion/is-prop-valid

means

  styled-components or @emotion/is-prop-valid

is not explicitly declared in the package.json of react-popopo

Once that was done, yarn install would work.

srascar-bubble avatar Jul 19 '22 09:07 srascar-bubble

Run into this issue as well, yarn-deduplicate helped me

roman-kulakov avatar Aug 25 '22 11:08 roman-kulakov

Run into this issue as well, yarn-deduplicate helped me

this only help if yarn.lock still exists

rocco avatar Nov 23 '22 08:11 rocco

Still a problem unfortunately. Blocks me from migrating to yarn.

yhaiovyi-tripactions avatar Apr 11 '23 18:04 yhaiovyi-tripactions

Y'all should migrate to Yarn 3 (it's not hard). Yarn 1 development has stopped and this'll never be fixed.

milesj avatar Apr 11 '23 18:04 milesj

delete yarn.lock then runyarn work for me

huoguozhang avatar Jul 18 '23 12:07 huoguozhang

Same problem here.

error An unexpected error occurred: "expected hoisted manifest for \"frontend-hermes#react-router-dom#react-router\"".

KarineBrandelli avatar Dec 07 '23 18:12 KarineBrandelli

I used a slightly safer approach. Instead of deleting the yarn.lock, I just removed all the entries of the problematic library from yarn.lock file.

meet-mnazar avatar Apr 08 '24 11:04 meet-mnazar