Skip to content

Dependencies: Update vite-plugin-storybook-nextjs to ^3.2.4#34280

Merged
valentinpalkovic merged 1 commit into
storybookjs:nextfrom
k35o:chore/update-vite-plugin-storybook-nextjs-3.2.4
Mar 24, 2026
Merged

Dependencies: Update vite-plugin-storybook-nextjs to ^3.2.4#34280
valentinpalkovic merged 1 commit into
storybookjs:nextfrom
k35o:chore/update-vite-plugin-storybook-nextjs-3.2.4

Conversation

@k35o
Copy link
Copy Markdown
Contributor

@k35o k35o commented Mar 23, 2026

Bump vite-plugin-storybook-nextjs from ^3.1.9 to ^3.2.4 to pick up
important fixes including next/image resolution for package imports
(v3.2.2) and Vite 8 support (v3.2.0).

What I did

Updated vite-plugin-storybook-nextjs dependency in @storybook/nextjs-vite from ^3.1.9 to ^3.2.4.

The previous semver range resolved to 3.1.12 at most, missing important fixes in the 3.2.x line:

  • v3.2.2 — Fix next-image resolution for package image imports
  • v3.2.0 — Vite 8 support

Without this bump, Storybook Vitest browser tests fail for stories using next/image:

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of NextImage.

Since vite-plugin-storybook-nextjs is released independently, it may be worth adding automated update tooling or tightening release coordination to reduce the chance of similar regressions in the future.

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

  1. Create a Next.js project using @storybook/nextjs-vite with @storybook/addon-vitest
  2. Add a story that uses next/image with a static image import
  3. Run Vitest browser tests — should pass without Element type is invalid error

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Bump vite-plugin-storybook-nextjs from ^3.1.9 to ^3.2.4 to pick up
important fixes including next/image resolution for package imports
(v3.2.2) and Vite 8 support (v3.2.0).
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 23, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 70c661b3-90e6-49cd-a7d6-0632908f01f4

📥 Commits

Reviewing files that changed from the base of the PR and between 9ffa6c7 and 3ca1d44.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (1)
  • code/frameworks/nextjs-vite/package.json

📝 Walkthrough

Walkthrough

Updated the vite-plugin-storybook-nextjs dependency from version ^3.1.9 to ^3.2.4 in the NextJS-Vite framework package configuration file.

Changes

Cohort / File(s) Summary
Dependency Version Update
code/frameworks/nextjs-vite/package.json
Bumped vite-plugin-storybook-nextjs from ^3.1.9 to ^3.2.4.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs


Comment @coderabbitai help to get the list of available commands and usage tips.

@valentinpalkovic valentinpalkovic self-assigned this Mar 24, 2026
@valentinpalkovic valentinpalkovic moved this to Empathy Queue (prioritized) in Core Team Projects Mar 24, 2026
@valentinpalkovic valentinpalkovic moved this from Empathy Queue (prioritized) to In Progress in Core Team Projects Mar 24, 2026
@valentinpalkovic valentinpalkovic added ci:normal maintenance User-facing maintenance tasks labels Mar 24, 2026
@storybook-app-bot
Copy link
Copy Markdown

Package Benchmarks

Commit: 3ca1d44, ran on 24 March 2026 at 09:59:57 UTC

The following packages have significant changes to their size or dependencies:

storybook

Before After Difference
Dependency count 50 49 🎉 -1 🎉
Self size 20.46 MB 20.46 MB 🎉 -882 B 🎉
Dependency size 16.55 MB 16.54 MB 🎉 -10 KB 🎉
Bundle Size Analyzer Link Link

@storybook/nextjs

Before After Difference
Dependency count 534 534 0
Self size 650 KB 650 KB 0 B
Dependency size 60.20 MB 59.95 MB 🎉 -248 KB 🎉
Bundle Size Analyzer Link Link

@storybook/nextjs-vite

Before After Difference
Dependency count 92 92 0
Self size 1.12 MB 1.12 MB 0 B
Dependency size 22.73 MB 22.48 MB 🎉 -248 KB 🎉
Bundle Size Analyzer Link Link

@storybook/react-native-web-vite

Before After Difference
Dependency count 121 121 0
Self size 30 KB 30 KB 0 B
Dependency size 23.80 MB 23.55 MB 🎉 -248 KB 🎉
Bundle Size Analyzer Link Link

@storybook/react-vite

Before After Difference
Dependency count 82 82 0
Self size 35 KB 35 KB 🎉 -36 B 🎉
Dependency size 20.51 MB 20.26 MB 🎉 -248 KB 🎉
Bundle Size Analyzer Link Link

@storybook/react-webpack5

Before After Difference
Dependency count 271 271 0
Self size 24 KB 24 KB 0 B
Dependency size 44.81 MB 44.56 MB 🎉 -248 KB 🎉
Bundle Size Analyzer Link Link

@storybook/cli

Before After Difference
Dependency count 184 183 🎉 -1 🎉
Self size 780 KB 780 KB 0 B
Dependency size 67.68 MB 67.66 MB 🎉 -11 KB 🎉
Bundle Size Analyzer Link Link

@storybook/codemod

Before After Difference
Dependency count 177 176 🎉 -1 🎉
Self size 32 KB 32 KB 🎉 -36 B 🎉
Dependency size 66.20 MB 66.19 MB 🎉 -11 KB 🎉
Bundle Size Analyzer Link Link

create-storybook

Before After Difference
Dependency count 51 50 🎉 -1 🎉
Self size 1.04 MB 1.04 MB 0 B
Dependency size 37.01 MB 37.00 MB 🎉 -11 KB 🎉
Bundle Size Analyzer node node

@storybook/react

Before After Difference
Dependency count 58 58 0
Self size 1.44 MB 1.19 MB 🎉 -248 KB 🎉
Dependency size 13.21 MB 13.21 MB 0 B
Bundle Size Analyzer Link Link

@valentinpalkovic valentinpalkovic merged commit 09a3460 into storybookjs:next Mar 24, 2026
122 of 129 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Core Team Projects Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:normal maintenance User-facing maintenance tasks

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants