canirequire › No JS entry point › @angular/cdk
Is @angular/cdk ESM-only? Can you require() it?
Angular Material Component Development Kit
Last verified Sep 9, 2026 against @angular/cdk@22.1.6. JSON
No JS entry point No JavaScript entry point
@angular/cdk does not expose a JavaScript entry point in package.json. It is likely a CLI, a stylesheet, a type-definition package, or an asset bundle, so require() and import are not the way to use it.
Does @angular/cdk@22.1.6 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("@angular/cdk") from a CommonJS file and import "@angular/cdk" from an ES module.
| Runtime | require("@angular/cdk") | import "@angular/cdk" |
|---|---|---|
| Node.js 18 | ✗ failsERR_REQUIRE_ESM | ✓ works |
| Node.js 20 | ✓ works | ✓ works |
| Node.js 22 | ✓ works | ✓ works |
| Node.js 24 | ✓ works | ✓ works |
| Node.js 26 | ✓ works | ✓ works |
| Bun 1.4 | ✓ works | ✓ works |
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 @angular/cdk
ES modules (import)
import cdk from "@angular/cdk";CommonJS (require)
Not applicable.
Module format by version
Derived from the type, main and exports fields of every stable release on npm (387 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 20.1.6 – 22.1.6 | No JS entry point | Aug 14, 2025 |
Frequently asked
Is @angular/cdk ESM-only?
@angular/cdk@22.1.6 has no importable main entry. @angular/cdk does not expose a JavaScript entry point in package.json. It is likely a CLI, a stylesheet, a type-definition package, or an asset bundle, so require() and import are not the way to use it.
Does @angular/cdk work in Bun?
Yes. import "@angular/cdk" loaded successfully in Bun 1.4 on Sep 9, 2026.
Does @angular/cdk ship TypeScript types?
Yes. @angular/cdk bundles its own type declarations; no @types package is needed.
Links
Other no js entry point packages
- type-fest 5.9.0No entry
- eslint-config-next 16.3.4No entry
- storybook 10.6.0No entry
- @storybook/addon-docs 10.6.0No entry
- @storybook/addon-a11y 10.6.0No entry
- eslint-plugin-storybook 10.6.0No entry
- tsup 8.5.1No entry
- typedoc 0.28.20No entry
Similar popularity
- @angular/cli 22.1.7CommonJS
- @ethersproject/address 5.8.0CommonJS
- @sveltejs/kit 2.70.3Dual
- @angular/material 22.1.6No entry
- @angular/animations 22.1.5ESM-only
- @ethersproject/networks 5.8.0CommonJS
- @fortawesome/react-fontawesome 3.5.0Dual
- @vitejs/plugin-vue-jsx 5.1.6ESM-only