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

> @mui/material@9.4.0 declares CommonJS and ESM builds, but require() fails at runtime. Dual package on paper — require() failed in our runtime test.

Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.

Last verified Sep 9, 2026 against @mui/material@9.4.0.

@mui/material declares both a CommonJS entry and a native ESM entry (ESM added in 7.0.0), but require("@mui/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/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.

## Facts

- Latest: 9.4.0 (Aug 27, 2026)
- Module format: Dual (CommonJS + ESM)
- Last CommonJS version: 9.4.0
- Native ESM since: 7.0.0
- TypeScript types: bundled
- Node engines: >=14.0.0
- Weekly downloads: 7.2M
- License: MIT

## Runtime test results for @mui/material@9.4.0

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

| Runtime | require("@mui/material") | import "@mui/material" |
|---|---|---|
| Node.js 18 | fails (MODULE_NOT_FOUND) | fails (ERR_MODULE_NOT_FOUND) |
| Node.js 20 | fails (MODULE_NOT_FOUND) | fails (ERR_MODULE_NOT_FOUND) |
| Node.js 22 | fails (MODULE_NOT_FOUND) | fails (ERR_MODULE_NOT_FOUND) |
| Node.js 24 | fails (MODULE_NOT_FOUND) | fails (ERR_MODULE_NOT_FOUND) |
| Node.js 26 | fails (MODULE_NOT_FOUND) | fails (ERR_MODULE_NOT_FOUND) |
| Bun 1.4.0 | fails (Error) | fails (Error) |

## How to import @mui/material

ES modules:

```js
import * as material from "@mui/material";
```

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

CommonJS:

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

## Module format by version

Derived from the type, main and exports fields of every stable release on npm (214 versions; the newest 60 shown).

| Versions | Format | First published |
|---|---|---|
| 9.0.0 – 9.4.0 | Dual (CommonJS + ESM) | Apr 7, 2026 |
| 7.3.2 – 7.3.11 | CommonJS | Sep 2, 2025 |
| 7.0.0 – 7.3.1 | Dual (CommonJS + ESM) | Mar 26, 2025 |
| 6.0.0 – 6.5.0 | CommonJS | Aug 27, 2024 |

## Frequently asked

**Is @mui/material ESM-only?**

@mui/material@9.4.0 declares CommonJS and ESM builds, but require() fails at runtime. @mui/material declares both a CommonJS entry and a native ESM entry (ESM added in 7.0.0), but require("@mui/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/material?**

Not in practice. @mui/material declares a CommonJS entry, but require("@mui/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/material work in Bun?**

Importing @mui/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__material/node_modules/@mui/styled-engine/index.mjs'

**Does @mui/material ship TypeScript types?**

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

## Links

- [@mui/material on npm](https://www.npmjs.com/package/@mui/material)
- [Source repository](https://github.com/mui/material-ui)
- [HTML version](https://canirequire.com/package/@mui/material/)
- [JSON version](https://canirequire.com/package/@mui/material.json)

---

For scripts and AI agents: any package is at https://canirequire.com/package/<name>/index.md (Markdown) or https://canirequire.com/package/<name>.json (JSON); the site index is https://canirequire.com/llms.txt. Fetch the URL directly; no search needed.
