canirequire › Dual (CommonJS + ESM) › @storybook/addon-actions
Is @storybook/addon-actions ESM-only? Can you require() it?
Empty package - please don't use it anymore
Last verified Sep 9, 2026 against @storybook/addon-actions@9.0.8. Markdown · JSON
Dual (CommonJS + ESM) Dual package on paper — require() failed in our runtime test
@storybook/addon-actions declares both a CommonJS entry and a native ESM entry (ESM added in 7.0.0), but require("@storybook/addon-actions") failed on every Node.js version in our probe: Your Storybook project is referring to package @storybook/addon-actions, which no longer exists in Storybook 9.0 and above. Please refer …. That usually means a missing peer dependency, a browser-only global, or a package that refuses to be loaded with require(); see the runtime table below.
What to do
- require("@storybook/addon-actions") failed in our probe on every Node.js version (Your Storybook project is referring to package @storybook/addon-actions, which no longer exists in Storybook 9.0 and above. Please refer …); check the package README for peer dependencies or setup before relying on it.
- TypeScript: types are bundled; install nothing extra.
Does @storybook/addon-actions@9.0.8 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("@storybook/addon-actions") from a CommonJS file and import "@storybook/addon-actions" from an ES module.
| Runtime | require("@storybook/addon-actions") | import "@storybook/addon-actions" |
|---|---|---|
| Node.js 18 | ✗ failsError | ✗ failsError |
| Node.js 20 | ✗ failsError | ✗ failsError |
| Node.js 22 | ✗ failsError | ✗ failsError |
| Node.js 24 | ✗ failsError | ✗ failsError |
| Node.js 26 | ✗ failsError | ✗ failsError |
| Bun 1.4.0 | ✗ failsError | ✗ failsError |
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-actions
ES modules (import)
import * as addonActions from "@storybook/addon-actions";Namespace import shown because the ESM entry may have no default export; use named imports for what it exports.
CommonJS (require)
// require("@storybook/addon-actions") failed in our probe on every Node.js version we test (Your Storybook project is referring to package @storybook/addon-actions, which no longer exists in Storybook 9.0 and above. Please refer …); see the runtime table.
const addonActions = require("@storybook/addon-actions");Module format by version
Derived from the type, main and exports fields of every stable release on npm, corrected where a runtime test of that version contradicted them (399 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 8.2.3 – 9.0.8 | Dual (CommonJS + ESM) | Jul 15, 2024 |
Frequently asked
Is @storybook/addon-actions ESM-only?
@storybook/addon-actions@9.0.8 declares CommonJS and ESM builds, but require() fails at runtime. @storybook/addon-actions declares both a CommonJS entry and a native ESM entry (ESM added in 7.0.0), but require("@storybook/addon-actions") failed on every Node.js version in our probe: Your Storybook project is referring to package @storybook/addon-actions, which no longer exists in Storybook 9.0 and above. Please refer …. That usually means a missing peer dependency, a browser-only global, or a package that refuses to be loaded with require(); see the runtime table below.
Can I require @storybook/addon-actions?
Not in practice. @storybook/addon-actions declares a CommonJS entry, but require("@storybook/addon-actions") failed on every Node.js version in our probe: Your Storybook project is referring to package @storybook/addon-actions, which no longer exists in Storybook 9.0 and above. Please refer …. Check the package README for peer dependencies or setup before relying on it.
Does @storybook/addon-actions work in Bun?
Importing @storybook/addon-actions failed in Bun 1.4.0 on Sep 9, 2026: error: Your Storybook project is referring to package @storybook/addon-actions, which no longer exists in Storybook 9.0 and above. Please refer to the Storybook 9 migration guide for instructions on how to fix this issue: https://storybook.js.org/docs/9/migration-guide#package-structure-changes
Does @storybook/addon-actions ship TypeScript types?
Yes. @storybook/addon-actions bundles its own type declarations; no @types package is needed.
Links
Other dual (commonjs + esm) packages
- minimatch 10.2.6Dual
- brace-expansion 5.0.9Dual
- lru-cache 11.5.2Dual
- tslib 2.8.1Dual
- glob 13.0.6Dual
- eslint-visitor-keys 5.0.1Dual
- yallist 5.0.0Dual
- balanced-match 4.0.4Dual
Similar popularity
- @angular/compiler 22.1.5ESM-only
- npm-run-all 4.1.5CommonJS
- url-loader 4.1.1CommonJS
- svelte 5.57.0ESM-only
- babel-plugin-transform-react-remove-prop-types 0.4.24CommonJS
- @angular/common 22.1.5ESM-only
- jsbi 4.3.2CommonJS
- @angular/cli 22.1.7CommonJS