canirequire

canirequireNo JS entry point › storybook

Is storybook ESM-only? Can you require() it?

Storybook: Develop, document, and test UI components in isolation

Last verified Sep 9, 2026 against storybook@10.6.0. JSON

No JS entry point No JavaScript entry point

storybook 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
10.6.0 (Sep 2, 2026)
Module format
No JS entry point
Last CommonJS version
9.1.20
Native ESM since
8.2.0
TypeScript types
Bundled
Node engines
not declared
Weekly downloads
19.5M
License
MIT

Does storybook@10.6.0 actually load? Runtime test results

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

Runtimerequire("storybook")import "storybook"
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 package 'storybook' from '/Users/boat/Projects/top-seo/data/probe-work/storybook/req.cjs'✗ failserror: Cannot find package 'storybook' from '/Users/boat/Projects/top-seo/data/probe-work/storybook/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 storybook

ES modules (import)

import storybook from "storybook";

CommonJS (require)

Not applicable.

Module format by version

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

VersionsFormatFirst published
10.3.0 – 10.6.0No JS entry pointMar 18, 2026
10.0.7 – 10.2.19ESM-onlyNov 11, 2025

Frequently asked

Is storybook ESM-only?

storybook@10.6.0 has no importable main entry. storybook 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 work in Bun?

Importing storybook failed in Bun 1.4 on Sep 9, 2026: error: Cannot find package 'storybook' from '/Users/boat/Projects/top-seo/data/probe-work/storybook/imp.mjs'

Does storybook ship TypeScript types?

Yes. storybook bundles its own type declarations; no @types package is needed.

Links

Other no js entry point packages

Similar popularity