canirequire › Dual (CommonJS + ESM) › @aws-sdk/nested-clients
Is @aws-sdk/nested-clients ESM-only? Can you require() it?
Nested clients for AWS SDK packages.
Last verified Sep 9, 2026 against @aws-sdk/nested-clients@3.997.44. JSON
Dual (CommonJS + ESM) Dual package — both require() and import work
@aws-sdk/nested-clients publishes both a CommonJS entry and a native ESM entry (ESM added in 3.730.0). require("@aws-sdk/nested-clients") and import "@aws-sdk/nested-clients" both work on every supported Node.js version and in Bun.
Does @aws-sdk/nested-clients@3.997.44 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("@aws-sdk/nested-clients") from a CommonJS file and import "@aws-sdk/nested-clients" from an ES module.
| Runtime | require("@aws-sdk/nested-clients") | import "@aws-sdk/nested-clients" |
|---|---|---|
| Node.js 18 | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED |
| Node.js 20 | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED |
| Node.js 22 | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED |
| Node.js 24 | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED |
| Node.js 26 | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED |
| Bun 1.4 | ✗ failserror: Cannot find module '@aws-sdk/nested-clients' from '/Users/boat/Projects/top-seo/data/probe-work/@aws-sdk__nested-clients/req.cjs' | ✗ failserror: Cannot find module '@aws-sdk/nested-clients' from '/Users/boat/Projects/top-seo/data/probe-work/@aws-sdk__nested-clients/imp.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 @aws-sdk/nested-clients
ES modules (import)
import nestedClients from "@aws-sdk/nested-clients";CommonJS (require)
const nestedClients = require("@aws-sdk/nested-clients");Module format by version
Derived from the type, main and exports fields of every stable release on npm (194 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 3.996.7 – 3.997.44 | Dual (CommonJS + ESM) | Mar 6, 2026 |
Frequently asked
Is @aws-sdk/nested-clients ESM-only?
@aws-sdk/nested-clients@3.997.44 ships CommonJS and ESM builds. @aws-sdk/nested-clients publishes both a CommonJS entry and a native ESM entry (ESM added in 3.730.0). require("@aws-sdk/nested-clients") and import "@aws-sdk/nested-clients" both work on every supported Node.js version and in Bun.
Can I require @aws-sdk/nested-clients?
Yes. @aws-sdk/nested-clients ships a CommonJS entry, so require("@aws-sdk/nested-clients") works on every Node.js version, alongside the native ESM entry for import.
Does @aws-sdk/nested-clients work in Bun?
Importing @aws-sdk/nested-clients failed in Bun 1.4 on Sep 9, 2026: error: Cannot find module '@aws-sdk/nested-clients' from '/Users/boat/Projects/top-seo/data/probe-work/@aws-sdk__nested-clients/imp.mjs'
Does @aws-sdk/nested-clients ship TypeScript types?
Yes. @aws-sdk/nested-clients 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
- @babel/plugin-transform-modules-commonjs 8.0.1ESM-only
- @smithy/util-base64 4.6.2CommonJS
- @smithy/credential-provider-imds 4.5.2CommonJS
- @smithy/middleware-serde 4.5.2CommonJS
- @smithy/url-parser 4.5.2CommonJS
- @noble/hashes 2.4.0ESM-only
- @tailwindcss/oxide 4.3.3CommonJS
- @smithy/middleware-stack 4.5.2CommonJS