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. JSON
Dual (CommonJS + ESM) Dual package — both require() and import work
@storybook/addon-actions publishes both a CommonJS entry and a native ESM entry (ESM added in 7.0.0). require("@storybook/addon-actions") and import "@storybook/addon-actions" both work on every supported Node.js version and in Bun.
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: 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 | ✗ failsError: 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 |
| Node.js 20 | ✗ failsError: 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 | ✗ failsError: 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 |
| Node.js 22 | ✗ failsError: 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 | ✗ failsError: 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 |
| Node.js 24 | ✗ failsError: 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 | ✗ failsError: 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 |
| Node.js 26 | ✗ failsError: 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 | ✗ failsError: 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 |
| Bun 1.4 | ✗ failserror: 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 | ✗ failserror: 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 |
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 addonActions from "@storybook/addon-actions";CommonJS (require)
const addonActions = require("@storybook/addon-actions");Module format by version
Derived from the type, main and exports fields of every stable release on npm (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 ships CommonJS and ESM builds. @storybook/addon-actions publishes both a CommonJS entry and a native ESM entry (ESM added in 7.0.0). require("@storybook/addon-actions") and import "@storybook/addon-actions" both work on every supported Node.js version and in Bun.
Can I require @storybook/addon-actions?
Yes. @storybook/addon-actions ships a CommonJS entry, so require("@storybook/addon-actions") works on every Node.js version, alongside the native ESM entry for import.
Does @storybook/addon-actions work in Bun?
Importing @storybook/addon-actions failed in Bun 1.4 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
- glob 13.0.6Dual
- eslint-visitor-keys 5.0.1Dual
- yallist 5.0.0Dual
- balanced-match 4.0.4Dual
- js-yaml 5.4.1Dual
Similar popularity
- @nestjs/testing 12.0.1ESM-only
- @vitejs/plugin-vue 6.0.8ESM-only
- @babel/preset-flow 8.0.1ESM-only
- @rollup/plugin-terser 1.0.0Dual
- @storybook/builder-webpack5 10.6.0No entry
- @angular/core 22.1.5ESM-only
- @storybook/blocks 8.6.14Dual
- @babel/plugin-proposal-export-namespace-from 7.18.9CommonJS