canirequire

canirequire › ESM-only › @ant-design/web3-icons

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

A collection of Web3 icons.

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

ESM-only ESM-only since 1.3.2 — last CommonJS version is 1.3.1

@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.
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

Does @ant-design/web3-icons@1.16.0 actually load? Runtime test results

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.

Runtimerequire("@ant-design/web3-icons")import "@ant-design/web3-icons"
Node.js 18✗ failsERR_REQUIRE_ESM✗ 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✓ works✓ works

How to import @ant-design/web3-icons

ES modules (import)

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 (require)

// 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, corrected where a runtime test of that version contradicted them (31 versions; the newest 31 shown).

VersionsFormatFirst published
2.0.0CommonJSDec 29, 2023
1.3.2 – 1.16.0ESM-onlyJan 22, 2024
1.3.1Dual (CommonJS + ESM)Jan 16, 2024
1.1.0 – 1.3.0CommonJSDec 29, 2023
0.1.0 – 1.0.0Dual (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

Other esm-only packages

Similar popularity