question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

material-ui-icons-next wrong peerDependencies

See original GitHub issue

Currently I’m using material-ui v0.20 and I want start the migration to v1. As it is written on the page: https://material-ui-next.com/guides/migration-v0.x I’ve installed the package material-ui-next to have to versions of material-ui (npm install material-ui-next).

Now I want to use material-ui-icons package. So my idea was to install the material-ui-icons-next that analogous should have the dependencies to material-ui-next not to material-ui package.

Current Behavior

npm WARN material-ui-icons-next@1.0.0-beta.17-next requires a peer of material-ui@^1.0.0-beta.16 but none was installed.

material-ui-icons-next package.json:

"peerDependencies": {
    "material-ui": "^1.0.0-beta.16",
    "react": "^15.3.0 || ^16.0.0",
    "react-dom": "^15.3.0 || ^16.0.0"
  }

Expected Behavior

material-ui-icons-next package.json:

"peerDependencies": {
    "material-ui-next": ...
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Feb 6, 2018

Current workaround: https://github.com/mui-org/material-ui/pull/8473#issuecomment-333472103

This issue will be solved once we release Material-UI under a new npm organization in #9673. We will be able to close #9469 too.

0reactions
oliviertassinaricommented, Feb 6, 2018

peerDependencies: material-ui@^1… OR material-ui-next@^1…

This would suppress the warning. But I’m not convinced it’s a good thing. Especially given the situation is already pretty ugly with:

import SvgIcon from 'material-ui-next/SvgIcon';
global.__MUI_SvgIcon__ = SvgIcon;
Read more comments on GitHub >

github_iconTop Results From Across the Web

material-ui-icons-next wrong peerDependencies · Issue #10189
So my idea was to install the material-ui-icons-next that analogous should have the dependencies to material-ui-next not to material-ui package.
Read more >
Issue with Material UI Icons npm installation - Stack Overflow
I was trying to install Material UI Icons in my Netflix-Clone React.js project with npm, but I got the following error -
Read more >
Installation - Material UI - MUI
Install Material UI, the world's most popular React UI framework. Default installation. Run one of the following commands to add Material UI to...
Read more >
fix the upstream dependency conflict or retry material ui
I am trying to add the Material-UI icons to my react app. I used the npm install @material-ui/icons and this is the error...
Read more >
@material-ui/core | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found