storybookjs/storybook

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

Open

#29,416 建立於 2024年10月21日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (89,909 star) (10,058 fork)batch import
addon: vitestbughelp wantedsev:S3svelte

描述

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

貢獻者指南