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.

Not able to install icons yarn add @material-ui/icons package

See original GitHub issue
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

info There appears to be trouble with your network connection. Retrying…

Expected Behavior 🤔

Steps to Reproduce 🕹

Steps:

1.yarn add @material-ui/icons, showing network errors image

Context 🔦

Your Environment 🌎

`npx @material-ui/envinfo`
  Don't forget to mention which browser you used.
  Output from `npx @material-ui/envinfo` goes here.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Jun 10, 2021

#26310 was reverted in #26656 as it breaks Next.js.

1reaction
eps1loncommented, May 13, 2021

With developers keep struggling on v4, and v5 adding a good +30% more icons, it seems that we need to do something about it.

Agreed. I do have some ideas that should hopefully get us down to the v4 install size. Even going so far as just shipping ES modules since we no longer support node 10 but that’s a bit more prone to bugs.

  • minify published icons code
  • Replace import * as React from 'react' with import of what we need (e.g. just import { Fragment } from 'react';
  • just ship ES modules

But that requires an update to the icons itself which aren’t checked in. So first we need to update the icons (probably ignore the new ones) and then vendor in material-ui-icons/material-icons.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install @mui/material-icons last version #12432
Hello, since @material-ui/icons v2.0.1, I'm unable to install it using yarn (v1.9.2). ... yarn fails to load icons package #12460.
Read more >
@material-ui/icons | Yarn - Package Manager
This package provides the Google Material icons packaged as a set of React components. Installation. Install the package in your project directory with:...
Read more >
How can I import Material UI icons?i met some problems using ...
The icons module should be added to dependencies. Use npm npm install @material-ui/icons. Or use Yarn yarn add @material-ui/icons.
Read more >
@material-ui/icons - npm
Installation. Install the package in your project directory with: // with npm npm install @material-ui/icons // with yarn yarn add ...
Read more >
Installation - Material UI - MUI
yarn add @mui/material @emotion/react @emotion/styled ... To install the Material Icons font in your project using the Google Web Fonts CDN, add the ......
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