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. JSON
Dual (CommonJS + ESM) Dual package — both require() and import work
@mui/icons-material publishes both a CommonJS entry and a native ESM entry (ESM added in 6.1.0). require("@mui/icons-material") and import "@mui/icons-material" both work on every supported Node.js version and in Bun.
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.
| Runtime | require("@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 | ✗ failserror: Cannot find module '@emotion/styled' from '/Users/boat/Projects/top-seo/data/probe-work/@mui__icons-material/node_modules/@mui/styled-engine/index.js' | ✗ failserror: Cannot find module '@emotion/styled' from '/Users/boat/Projects/top-seo/data/probe-work/@mui__icons-material/node_modules/@mui/styled-engine/index.mjs' |
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 iconsMaterial from "@mui/icons-material";CommonJS (require)
const iconsMaterial = require("@mui/icons-material");Module format by version
Derived from the type, main and exports fields of every stable release on npm (152 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 9.0.0 – 9.4.0 | Dual (CommonJS + ESM) | Apr 7, 2026 |
| 7.3.3 – 7.3.11 | CommonJS | Oct 1, 2025 |
| 6.1.0 – 7.3.2 | Dual (CommonJS + ESM) | Sep 11, 2024 |
| 5.18.0 – 6.0.2 | CommonJS | Jul 8, 2025 |
Frequently asked
Is @mui/icons-material ESM-only?
@mui/icons-material@9.4.0 ships CommonJS and ESM builds. @mui/icons-material publishes both a CommonJS entry and a native ESM entry (ESM added in 6.1.0). require("@mui/icons-material") and import "@mui/icons-material" both work on every supported Node.js version and in Bun.
Can I require @mui/icons-material?
Yes. @mui/icons-material ships a CommonJS entry, so require("@mui/icons-material") works on every Node.js version, alongside the native ESM entry for import.
Does @mui/icons-material work in Bun?
Importing @mui/icons-material failed in Bun 1.4 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
- minimatch 10.2.6Dual
- brace-expansion 5.0.9Dual
- lru-cache 11.5.2Dual
- glob 13.0.6Dual
- eslint-visitor-keys 5.0.1Dual
- yallist 5.0.0Dual
- balanced-match 4.0.4Dual
- js-yaml 5.4.1Dual
Similar popularity
- @mui/material 9.4.0Dual
- @rollup/plugin-json 6.1.0Dual
- @babel/plugin-proposal-export-default-from 8.0.1ESM-only
- @vueuse/core 14.4.0ESM-only
- @nestjs/testing 12.0.1ESM-only
- @vitejs/plugin-vue 6.0.8ESM-only
- @babel/preset-flow 8.0.1ESM-only
- @rollup/plugin-terser 1.0.0Dual