Skip to content

[Bug]: package is incompatible with Storybook 8.6.0 #866

@yousef-n-daaboul

Description

@yousef-n-daaboul

Environment


  • Operating System: Windows_NT
  • Node Version: v22.13.1
  • Nuxt Version: 3.13.2
  • CLI Version: 3.15.0
  • Nitro Version: 2.9.7
  • Package Manager: pnpm@9.9.0
  • Builder: -
  • User Config: default
  • Runtime Modules: maz-ui/nuxt, @vueuse/nuxt@11.0.3, @nuxtjs/i18n@8.5.3, nuxt-typed-router@3.6.5, @element-plus/nuxt@1.0.10, @nuxtjs/tailwindcss@6.12.1, @hebilicious/vue-query-nuxt@0.3.0, @nuxt/eslint@0.6.0, @vee-validate/nuxt@4.14.6, nuxt-svgo@4.0.7, @nuxtjs/storybook@8.3.3
  • Build Modules: -

Reproduction

not exist

Describe the bug

When i install storybook in my nuxt project using this command : "pnpm dlx storybook@latest init" i get this error when run storybook server:

WARN The following packages are incompatible with Storybook 8.6.0 as they depend on different major versions of Storybook packages:
WARN - @nuxtjs/storybook@8.3.3
WARN Repo: https://storybook.nuxtjs.org
WARN
WARN
WARN Please consider updating your packages or contacting the maintainers for compatibility details.
WARN For more on Storybook 8 compatibility, see the linked GitHub issue:
WARN storybookjs/storybook#26031

Additional context

SB_CORE-SERVER_0002 (CriticalPresetLoadError): Storybook failed to load the following preset: @storybook-vue\nuxt\preset.

Please check whether your setup is correct, the Storybook dependencies (and their peer dependencies) are installed correctly and there are no package version clashes.

If you believe this is a bug, please open an issue on Github.

ReferenceError: module is not defined
at file:///~toProject/node_modules/.pnpm/@storybook-vue+nuxt@8.3.3_@types+node@22.7.9_eslint@9.13.0_jiti@2.3.3__magicast@0.3.5_nuxt@3._qpmjg76uwtxnjdwz4dzapenlzy/node_modules/@storybook-vue/nuxt/preset.js:1:1
at ModuleJobSync.runSync (node:internal/modules/esm/module_job:395:35)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:329:47)
at loadESMFromCJS (node:internal/modules/cjs/loader:1411:24)
at Module._compile (node:internal/modules/cjs/loader:1544:5)
at node:internal/modules/cjs/loader:1668:16
at Object.newLoader (.\node_modules.pnpm\esbuild-register@3.6.0_esbuild@0.24.0\node_modules\esbuild-register\dist\node.js:2262:9)
at extensions..js (.\node_modules.pnpm\esbuild-register@3.6.0_esbuild@0.24.0\node_modules\esbuild-register\dist\node.js:4833:24)
at Module.load (node:internal/modules/cjs/loader:1313:32)
at Function._load (node:internal/modules/cjs/loader:1123:12)

More info:

at loadPreset (.\node_modules\.pnpm\@storybook+core@8.6.0_prettier@3.3.3_storybook@8.6.0_prettier@3.3.3_\node_modules\@storybook\core\dist\common\index.cjs:16515:13)

WARN Broken build, fix the error above.
WARN You may need to refresh the browser.

 ELIFECYCLE  Command failed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions