storybookjs/storybook
Vedi su GitHub[Bug]: Module "node"process" has been externalized - Svelte | Addon-Test
Open
#29.416 aperta il 21 ott 2024
addon: vitestbughelp wantedsev:S3svelte
Metriche repository
- Star
- (89.909 star)
- Metriche merge PR
- (Merge medio 7g 22h) (184 PR mergiate in 30 g)
Descrizione
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
- Create a Svelte 5 sandbox
- Run
yarn vitest