canirequire

canirequireNo JS entry point › @angular/material

Is @angular/material ESM-only? Can you require() it?

Angular Material

Last verified Sep 9, 2026 against @angular/material@22.1.6. JSON

No JS entry point No JavaScript entry point

@angular/material 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.

Latest
22.1.6 (Sep 9, 2026)
Module format
No JS entry point
Last CommonJS version
12.2.13
Native ESM since
13.0.0
TypeScript types
Bundled
Node engines
not declared
License
MIT

Does @angular/material@22.1.6 actually load? Runtime test results

Installed and executed on Sep 9, 2026 with require("@angular/material") from a CommonJS file and import "@angular/material" from an ES module.

Runtimerequire("@angular/material")import "@angular/material"
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/material

ES modules (import)

import material from "@angular/material";

CommonJS (require)

Not applicable.

Module format by version

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

VersionsFormatFirst published
20.1.5 – 22.1.6No JS entry pointAug 6, 2025

Frequently asked

Is @angular/material ESM-only?

@angular/material@22.1.6 has no importable main entry. @angular/material 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/material work in Bun?

Yes. import "@angular/material" loaded successfully in Bun 1.4 on Sep 9, 2026.

Does @angular/material ship TypeScript types?

Yes. @angular/material bundles its own type declarations; no @types package is needed.

Links

Other no js entry point packages

Similar popularity