Vitest run fails with exception in vitest-intellij-reporter.js:1:14
Hi!
I want to run my vitest tests I get an exception in file:///C:/Entwicklung/Tools/WebStorm-2025.1.1.win/plugins/javascript-plugin/helpers/vitest-intellij/vitest-intellij-reporter.js:1:14
Running “vitest run” works fine. So it is not a configuration issue. And this has worked in the past.
Stacktrace:
require is not defined
ReferenceError: require is not defined
at file:///C:/Entwicklung/Tools/WebStorm-2025.1.1.win/plugins/javascript-plugin/helpers/vitest-intellij/vitest-intellij-reporter.js:1:14
at ModuleJobSync.runSync (node:internal/modules/esm/module_job:400:35)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:427:47)
at loadESMFromCJS (node:internal/modules/cjs/loader:1561:24)
at Module._compile (node:internal/modules/cjs/loader:1712:5)
at Object..js (node:internal/modules/cjs/loader:1895:10)
at Module.load (node:internal/modules/cjs/loader:1465:32)
at Function._load (node:internal/modules/cjs/loader:1282:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
vitest version 3.2.4 with Typescript 5.8.3 on Windows 11
Webstorm version is 2025.2 (Build #WS-252.23892.411, built on August 1, 2025)
请先登录再写评论。
Hello!
Thank you for reaching out to us!
Unfortunately I failed to reproduce the issue. Would it be possible to create a sample project that reproduces it and share it with us?