Skip to content

Cannot import material-ui/icons at nextjs #26749

Closed
@Rukeith

Description

@Rukeith
  • [ x] The issue is present in the latest release.
  • [ x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

import @material-ui/icons fail, build nextjs fail

Expected Behavior 🤔

Should use normally

Steps to Reproduce 🕹

Steps:

  1. Install material-ui/icons
  2. Import icon and render
  3. npm run dev fail

Context 🔦

截圖 2021-06-14 16 25 39

Your Environment 🌎

Chrome 91.0.4472.101

  System:
    OS: macOS 11.4
  Binaries:
    Node: 16.3.0 - ~/.nvm/versions/node/v16.3.0/bin/node
    Yarn: Not Found
    npm: 7.17.0 - ~/.nvm/versions/node/v16.3.0/bin/npm
  Browsers:
    Chrome: 91.0.4472.101
    Edge: Not Found
    Firefox: Not Found
    Safari: 14.1.1
  npmPackages:
    @emotion/react: ^11.4.0 => 11.4.0
    @emotion/styled: ^11.3.0 => 11.3.0
    @material-ui/core: ^5.0.0-alpha.36 => 5.0.0-alpha.36
    @material-ui/icons: ^5.0.0-alpha.36 => 5.0.0-alpha.36
    @material-ui/private-theming:  5.0.0-alpha.35
    @material-ui/types:  6.0.1
    @material-ui/unstyled:  5.0.0-alpha.35
    @material-ui/utils:  5.0.0-alpha.35
    @types/react:  17.0.11
    react: ^17.0.2 => 17.0.2
    react-dom: ^17.0.2 => 17.0.2
    typescript:  4.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions