storybookjs/storybook

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

オープン

#29,416 opened on 2024/10/21

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (10,058 件のフォーク)batch import
addon: vitestbughelp wantedsev:S3svelte

Repository metrics

Stars
 (89,909 個のスター)
PR merge metrics
 (平均マージ 7d 22h) (30d で 184 merged PRs)

説明

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

コントリビューターガイド