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

error An unexpected error occurred: "expected hoisted manifest for" #204

Open
maxirobaina opened this issue Nov 24, 2022 · 9 comments
Open

Comments

@maxirobaina
Copy link

maxirobaina commented Nov 24, 2022

Hi everyone,

I have this error message when try to install with yarn

error An unexpected error occurred: "expected hoisted manifest for "react-material-ui-carousel#@mui/material#@emotion/styled""

I'm on Ubuntu 20.04 desktop
node v16.16.0

¿Any help?

Regards

@mouazdk
Copy link

mouazdk commented Nov 29, 2022

I think you need to install the two packages from Material UI first to be able to install/use "react-material-ui-carousel"


yarn add @mui/material
yarn add @mui/icons-material
yarn add @mui/styles

or


# Version 2 with MUI 5 support
yarn add react-material-ui-carousel@v2mui5 --save

or have you done that already?

@maxirobaina
Copy link
Author

Hi @mouazdk
Thanks for response.
I tried both of them but neither works.

The dependecies section on my package.json is

"dependencies": {
"@date-io/date-fns": "2.14.0",
"@emotion/react": "11.9.3",
"@emotion/styled": "11.9.3",
"@mui/icons-material": "5.8.4",
"@mui/lab": "5.0.0-alpha.89",
"@mui/material": "5.8.7",
"@mui/styles": "5.8.7",
"classnames": "2.3.1",
"clsx": "1.2.1",
"date-fns": "2.28.0",
"intersection-observer": "0.12.2",
"just-debounce-it": "3.0.1",
"password-validator": "5.3.0",
"react": "18.2.0",
"react-auth-code-input": "^3.2.1",
"react-currency-format": "1.1.0",
"react-dom": "18.2.0",
"react-export-excel": "0.5.3",
"react-material-ui-carousel": "3.4.2",
"react-qr-reader": "2.2.1",
"react-router-dom": "6.3.0",
"react-scripts": "5.0.1",
"react-transition-group": "4.4.2",
"swiper": "8.3.0",
"webfontloader": "1.6.28",
"workbox-background-sync": "6.5.3",
"workbox-broadcast-update": "6.5.3",
"workbox-cacheable-response": "6.5.3",
"workbox-core": "6.5.3",
"workbox-expiration": "6.5.3",
"workbox-google-analytics": "6.5.3",
"workbox-navigation-preload": "6.5.3",
"workbox-precaching": "6.5.3",
"workbox-range-requests": "6.5.3",
"workbox-routing": "6.5.3",
"workbox-strategies": "6.5.3",
"workbox-streams": "6.5.3"
},

Its works fine building into stage environment but not in my local machine.

@mouazdk
Copy link

mouazdk commented Dec 7, 2022

have you tried?
yarn install --force

@jstgermain
Copy link

jstgermain commented Mar 15, 2023

Installation

yarn add react-material-ui-carousel --save

Note:

You will need to have Material UI installed, in order to use this library/component

yarn add @mui/material
yarn add @mui/icons-material
yarn add @mui/styles

Other Versions

Version 2 with MUI 4

yarn add react-material-ui-carousel@v2 --save
yarn add @material-ui/core
yarn add @material-ui/icons

Version 2 with MUI 5 support

yarn add react-material-ui-carousel@v2mui5 --save

@newtechfellas
Copy link

This is still a problem.

@jstgermain
Copy link

This is still a problem.

Maybe post your package or a yarn file and the air you are getting. I am using this package myself without any issues. Maybe you have a conflicting package.

@damianobarbati
Copy link

@newtechfellas did you manage to fix this? I have the same problem:

    "@mui/icons-material": "5.11.16",
    "@mui/material": "5.6.1",
    "@mui/styles": "5.12.0",
    "react-material-ui-carousel": "3.4.2",   

Resulting in:

error An unexpected error occurred: "expected hoisted manifest for \"react-material-ui-carousel#@mui/material#@emotion/styled\"".

@brettgoss
Copy link

I was encountering this as well, and resolved it by running yarn-deduplicate.

@GGJJack
Copy link

GGJJack commented Jul 27, 2023

I too had the same problem. I don't know why, but after deleting the package-lock.json file and the yarn.lock file, yarn install started working again.

Probably issue yarnpkg/yarn#7244 is related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@maxirobaina @brettgoss @damianobarbati @jstgermain @newtechfellas @GGJJack @mouazdk and others