canirequire › No JS entry point › @storybook/addon-docs
Is @storybook/addon-docs ESM-only? Can you require() it?
Storybook Docs: Document UI components automatically with stories and MDX
Last verified Sep 9, 2026 against @storybook/addon-docs@10.6.0. JSON
No JS entry point No JavaScript entry point
@storybook/addon-docs 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 @storybook/addon-docs@10.6.0 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("@storybook/addon-docs") from a CommonJS file and import "@storybook/addon-docs" from an ES module.
| Runtime | require("@storybook/addon-docs") | import "@storybook/addon-docs" |
|---|---|---|
| Node.js 18 | ✗ failsERR_REQUIRE_ESM | ✗ failsReferenceError |
| Node.js 20 | ✗ failsReferenceError | ✗ failsReferenceError |
| Node.js 22 | ✗ failsReferenceError | ✗ failsReferenceError |
| Node.js 24 | ✗ failsReferenceError | ✗ failsReferenceError |
| Node.js 26 | ✗ failsReferenceError | ✗ failsReferenceError |
| Bun 1.4 | ✗ failsReferenceError | ✗ failsReferenceError |
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 @storybook/addon-docs
ES modules (import)
import addonDocs from "@storybook/addon-docs";CommonJS (require)
Not applicable.
Module format by version
Derived from the type, main and exports fields of every stable release on npm (397 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 10.3.0 – 10.6.0 | No JS entry point | Mar 18, 2026 |
| 10.0.7 – 10.2.19 | ESM-only | Nov 11, 2025 |
Frequently asked
Is @storybook/addon-docs ESM-only?
@storybook/addon-docs@10.6.0 has no importable main entry. @storybook/addon-docs 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 @storybook/addon-docs work in Bun?
Importing @storybook/addon-docs failed in Bun 1.4 on Sep 9, 2026: ReferenceError: document is not defined
Does @storybook/addon-docs ship TypeScript types?
Yes. @storybook/addon-docs 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-a11y 10.6.0No entry
- eslint-plugin-storybook 10.6.0No entry
- tsup 8.5.1No entry
- typedoc 0.28.20No entry
- normalize.css 8.0.1No entry
Similar popularity
- moment-timezone 0.6.3CommonJS
- superagent 10.3.0CommonJS
- supertest 7.2.2CommonJS
- mustache 4.2.0Dual
- md5 2.3.0CommonJS
- tsconfig-paths-webpack-plugin 4.2.0CommonJS
- connect-history-api-fallback 2.0.0CommonJS
- mini-css-extract-plugin 2.10.2CommonJS