# Is @ant-design/web3-icons ESM-only? Can you require() it?

> @ant-design/web3-icons@1.16.0 is ESM-only. ESM-only since 1.3.2 — last CommonJS version is 1.3.1.

A collection of Web3 icons.

Last verified Sep 9, 2026 against @ant-design/web3-icons@1.16.0.

@ant-design/web3-icons dropped its CommonJS build in 1.3.2 (January 2024). The last version with a plain require()-able CommonJS entry is 1.3.1, published Jan 16, 2024.

require("@ant-design/web3-icons") failed in our probe on Node.js 20+ as well; see the runtime table for the error before relying on it. On Node.js 18, which has no require(esm), require("@ant-design/web3-icons") fails with ERR_REQUIRE_ESM.

## What to do

1. require("@ant-design/web3-icons") failed in our probe on Node.js 20+ as well; see the runtime table for the error before relying on it.
2. From a CommonJS file, use a dynamic import inside an async function: const web3Icons = await import("@ant-design/web3-icons"). That works on every Node.js version the package supports.
3. If you need a synchronous require() or run Node.js 18: npm install @ant-design/web3-icons@1.3.1, the last CommonJS release (published Jan 16, 2024).
4. TypeScript: types are bundled; install nothing extra.

## Facts

- Latest: 1.16.0 (Nov 20, 2025)
- Module format: ESM-only
- Last CommonJS version: 1.3.1
- ESM-only since: 1.3.2 (Jan 22, 2024)
- TypeScript types: bundled
- Node engines: not declared
- Weekly downloads: 1K
- License: unknown

## Runtime test results for @ant-design/web3-icons@1.16.0

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

| Runtime | require("@ant-design/web3-icons") | import "@ant-design/web3-icons" |
|---|---|---|
| Node.js 18 | fails (ERR_REQUIRE_ESM) | 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 | works | works |

## How to import @ant-design/web3-icons

ES modules:

```js
import * as web3Icons from "@ant-design/web3-icons";
```

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

CommonJS:

```js
// require("@ant-design/web3-icons") failed in our probe on Node.js 20.19+, 22.12+ and newer as well (Cannot find module './components/aave-circle-colorful'); see the runtime table.

// Any Node.js version the package supports, from an async function:
async function main() {
  const web3Icons = await import("@ant-design/web3-icons");
}

// Or pin the last CommonJS release:
// npm install @ant-design/web3-icons@1.3.1
```

## Module format by version

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

| Versions | Format | First published |
|---|---|---|
| 2.0.0 | CommonJS | Dec 29, 2023 |
| 1.3.2 – 1.16.0 | ESM-only | Jan 22, 2024 |
| 1.3.1 | Dual (CommonJS + ESM) | Jan 16, 2024 |
| 1.1.0 – 1.3.0 | CommonJS | Dec 29, 2023 |
| 0.1.0 – 1.0.0 | Dual (CommonJS + ESM) | Dec 11, 2023 |

## Frequently asked

**Is @ant-design/web3-icons ESM-only?**

@ant-design/web3-icons@1.16.0 is ESM-only. @ant-design/web3-icons dropped its CommonJS build in 1.3.2 (January 2024). The last version with a plain require()-able CommonJS entry is 1.3.1, published Jan 16, 2024.

**Which version of @ant-design/web3-icons still supports CommonJS / require()?**

1.3.1 is the last version of @ant-design/web3-icons with a CommonJS build. Install it with "npm install @ant-design/web3-icons@1.3.1". Every version from 1.3.2 on is ESM-only.

**How do I use @ant-design/web3-icons from a CommonJS file?**

From a CommonJS file, use a dynamic import inside an async function: const web3Icons = await import("@ant-design/web3-icons"). That works on every Node.js version the package supports. require("@ant-design/web3-icons") failed in our probe on Node.js 20+ as well; see the runtime table for the error before relying on it. Alternatively pin @ant-design/web3-icons@1.3.1.

**Does @ant-design/web3-icons work in Bun?**

Yes. import "@ant-design/web3-icons" loaded successfully in Bun 1.4.0 on Sep 9, 2026.

**Does @ant-design/web3-icons ship TypeScript types?**

Yes. @ant-design/web3-icons bundles its own type declarations; no @types package is needed.

## Links

- [@ant-design/web3-icons on npm](https://www.npmjs.com/package/@ant-design/web3-icons)
- [Source repository](https://github.com/ant-design/ant-design-web3)
- [HTML version](https://canirequire.com/package/@ant-design/web3-icons/)
- [JSON version](https://canirequire.com/package/@ant-design/web3-icons.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.
