canirequire

canirequire › Dual (CommonJS + ESM) › @mui/icons-material

Is @mui/icons-material ESM-only? Can you require() it?

Material Design icons distributed as SVG React components.

Last verified Sep 9, 2026 against @mui/icons-material@9.4.0. Markdown · JSON

Dual (CommonJS + ESM) Dual package on paper — require() failed in our runtime test

@mui/icons-material declares both a CommonJS entry and a native ESM entry (ESM added in 6.1.0), but require("@mui/icons-material") failed on every Node.js version in our probe: Cannot find module '@emotion/styled'. That usually means a missing peer dependency, a browser-only global, or a package that refuses to be loaded with require(); see the runtime table below.

What to do

  1. require("@mui/icons-material") failed in our probe on every Node.js version (Cannot find module '@emotion/styled'); check the package README for peer dependencies or setup before relying on it.
  2. TypeScript: types are bundled; install nothing extra.
Latest
9.4.0 (Aug 27, 2026)
Module format
Dual (CommonJS + ESM)
Last CommonJS version
9.4.0
Native ESM since
6.1.0
TypeScript types
Bundled
Node engines
>=14.0.0
Weekly downloads
6.6M
License
MIT

Does @mui/icons-material@9.4.0 actually load? Runtime test results

Installed and executed on Sep 9, 2026 with require("@mui/icons-material") from a CommonJS file and import "@mui/icons-material" from an ES module.

Runtimerequire("@mui/icons-material")import "@mui/icons-material"
Node.js 18✗ failsMODULE_NOT_FOUND✗ failsERR_MODULE_NOT_FOUND
Node.js 20✗ failsMODULE_NOT_FOUND✗ failsERR_MODULE_NOT_FOUND
Node.js 22✗ failsMODULE_NOT_FOUND✗ failsERR_MODULE_NOT_FOUND
Node.js 24✗ failsMODULE_NOT_FOUND✗ failsERR_MODULE_NOT_FOUND
Node.js 26✗ failsMODULE_NOT_FOUND✗ failsERR_MODULE_NOT_FOUND
Bun 1.4.0✗ failsError✗ failsError

A failing require() on a CommonJS package usually means the package needs a browser/DOM global, a peer dependency, or a native binary that is not available in a bare Node.js process.

How to import @mui/icons-material

ES modules (import)

import * as iconsMaterial from "@mui/icons-material";

Namespace import shown because the ESM entry may have no default export; use named imports for what it exports.

CommonJS (require)

// require("@mui/icons-material") failed in our probe on every Node.js version we test (Cannot find module '@emotion/styled'); see the runtime table.
const iconsMaterial = require("@mui/icons-material");

Module format by version

Derived from the type, main and exports fields of every stable release on npm, corrected where a runtime test of that version contradicted them (152 versions; the newest 60 shown).

VersionsFormatFirst published
9.0.0 – 9.4.0Dual (CommonJS + ESM)Apr 7, 2026
7.3.3 – 7.3.11CommonJSOct 1, 2025
6.1.0 – 7.3.2Dual (CommonJS + ESM)Sep 11, 2024
5.18.0 – 6.0.2CommonJSJul 8, 2025

Frequently asked

Is @mui/icons-material ESM-only?

@mui/icons-material@9.4.0 declares CommonJS and ESM builds, but require() fails at runtime. @mui/icons-material declares both a CommonJS entry and a native ESM entry (ESM added in 6.1.0), but require("@mui/icons-material") failed on every Node.js version in our probe: Cannot find module '@emotion/styled'. That usually means a missing peer dependency, a browser-only global, or a package that refuses to be loaded with require(); see the runtime table below.

Can I require @mui/icons-material?

Not in practice. @mui/icons-material declares a CommonJS entry, but require("@mui/icons-material") failed on every Node.js version in our probe: Cannot find module '@emotion/styled'. Check the package README for peer dependencies or setup before relying on it.

Does @mui/icons-material work in Bun?

Importing @mui/icons-material failed in Bun 1.4.0 on Sep 9, 2026: error: Cannot find module '@emotion/styled' from '/Users/boat/Projects/top-seo/data/probe-work/@mui__icons-material/node_modules/@mui/styled-engine/index.mjs'

Does @mui/icons-material ship TypeScript types?

Yes. @mui/icons-material bundles its own type declarations; no @types package is needed.

Links

Other dual (commonjs + esm) packages

Similar popularity