Skip to content

[Bug]: Warning is shown: The CJS build of Vite's Node API is deprecated #24333

Closed
@IanVS

Description

Describe the bug

With the latest Vite 5 beta (beta.3), we are getting a warning logged to the terminal when starting up storybook:

The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.

I guess they're going to force us to start using their ESM build, and we should probably do it sooner than later, to avoid users reporting this warning.

To Reproduce

https://stackblitz.com/edit/github-wgldvd?file=package.json

System

N/A

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions