storybookjs/storybook

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

開放

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

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (10,058 個分叉)batch import
addon: vitestbughelp wantedsev:S3svelte

倉庫指標

星標
 (89,909 顆星)
PR 合併指標
 (平均合併 7天 22小時) (30 天內合併 184 個 PR)

描述

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

貢獻者指南