Skip to content

[Bug]: Module "node"process" has been externalized - Svelte | Addon-Test #29416

Open
@valentinpalkovic

Description

Describe the bug

When setting up @storybook/experimental-addon-test in a Svelte 5 project and running tests, the following warning gets printed to the terminal for each story file:

Module "node:process" has been externalized for browser compatibility. Cannot access "node:process.cwd" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

Reproduction steps

  1. Create a Svelte 5 sandbox
  2. Run yarn vitest

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions