canirequire › No JS entry point › typedoc
Is typedoc ESM-only? Can you require() it?
Create api documentation for TypeScript projects.
Last verified Sep 9, 2026 against typedoc@0.28.20. JSON
No JS entry point No JavaScript entry point
typedoc 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 typedoc@0.28.20 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("typedoc") from a CommonJS file and import "typedoc" from an ES module.
| Runtime | require("typedoc") | import "typedoc" |
|---|---|---|
| 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 typedoc
ES modules (import)
import typedoc from "typedoc";CommonJS (require)
Not applicable.
Module format by version
Derived from the type, main and exports fields of every stable release on npm (256 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 0.28.20 | No JS entry point | Jul 5, 2026 |
| 0.27.0 – 0.28.19 | ESM-only | Nov 27, 2024 |
| 0.24.6 – 0.26.11 | CommonJS | Apr 24, 2023 |
Frequently asked
Is typedoc ESM-only?
typedoc@0.28.20 has no importable main entry. typedoc 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 typedoc work in Bun?
Yes. import "typedoc" loaded successfully in Bun 1.4 on Sep 9, 2026.
Does typedoc ship TypeScript types?
Yes. typedoc 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
- normalize.css 8.0.1No entry
Similar popularity
- echarts 6.1.0Dual
- eslint-plugin-promise 7.3.0CommonJS
- stylelint-scss 7.2.0ESM-only
- eslint-plugin-vue 10.11.0CommonJS
- stylelint-config-standard 40.0.0ESM-only
- typeorm 1.1.1Dual
- @vue/test-utils 2.5.0Dual
- @microsoft/api-extractor 7.59.1Dual