canirequire

canirequireDual (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.

Latest
9.0.8 (Jun 10, 2025)
Module format
Dual (CommonJS + ESM)
Last CommonJS version
9.0.8
Native ESM since
7.0.0
TypeScript types
Bundled
Node engines
not declared
License
MIT

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.

Runtimerequire("@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).

VersionsFormatFirst published
8.2.3 – 9.0.8Dual (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

Similar popularity