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
- 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.
- 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.
- 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).
- TypeScript: types are bundled; install nothing extra.
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.
| Runtime | require("@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.1Module 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).
| 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
Other esm-only packages
- ansi-styles 7.0.0last CJS
5.2.0 - strip-ansi 7.2.0last CJS
6.0.1 - commander 15.0.0last CJS
14.0.3 - supports-color 11.0.0last CJS
8.1.1 - chalk 6.0.0last CJS
4.1.2 - string-width 8.2.2last CJS
4.2.3 - ansi-regex 6.3.0last CJS
5.0.1 - escape-string-regexp 5.0.0last CJS
4.0.0
Similar popularity
- microbundle-crl 0.13.11CommonJS
- tap-min 3.0.0ESM-only
- css-split-webpack-plugin 0.2.6CommonJS
- babel-plugin-transform-jsbi-to-bigint 1.4.2CommonJS
- @ant-design/web3-common 1.23.0Dual
- @alifd/babel-preset-next 2.0.0-betaCommonJS
- less-plugin-sass2less 1.2.0CommonJS
- acertea 1.1.6CommonJS