Closed ThomasCode92 closed 4 months ago
Do you at least have a stack trace for the error?
I just got this message in VS Code
After some searching I found this stack trace in the Window Output
024-04-17 10:57:57.232 [error] Cannot read properties of undefined (reading 'logger'): TypeError: Cannot read properties of undefined (reading 'logger')
at DefaultReporter.resetLastRunLog (file:///home/thomas/repos/<HIDDENPATH>/node_modules/vitest/dist/vendor/index.kSaPvGW6.js:868:14)
at DefaultReporter.onWatcherRerun (file:///home/thomas/repos/<HIDDENPATH>/node_modules/vitest/dist/vendor/index.kSaPvGW6.js:871:10)
at DefaultReporter.onWatcherRerun (file:///home/thomas/repos/d<HIDDENPATH>/node_modules/vitest/dist/vendor/index.kSaPvGW6.js:2229:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
at async Vitest.report (file:///home/thomas/repos/d<HIDDENPATH>/node_modules/vitest/dist/vendor/cac.qnW6GNL2.js:12076:5)
at async t.rerunTests (/home/thomas/.vscode/extensions/vitest.explorer-0.6.3/dist/worker.js:3:4385)
at async t.runTestFiles (/home/thomas/.vscode/extensions/vitest.explorer-0.6.3/dist/worker.js:3:4228)
at async t.collectTests (/home/thomas/.vscode/extensions/vitest.explorer-0.6.3/dist/worker.js:3:3444)
at async process.<anonymous> (/home/thomas/.vscode/extensions/vitest.explorer-0.6.3/dist/worker.js:1:3028)
``
@sheremet-va, I've identified the root cause of my problem. It turns out I had 'reporter' instead of 'reporters' in my config. Closing the issue now!
Describe the bug
I recently updated vitest to version 1.5.0 in my React project, which is powered by Vite. Previously, I was using the Test Explorer in VS Code without any issues. However, after the update, whenever I attempt to run tests using the Test Explorer, I encounter the following error message:
An error occurred attempting to run tests: TypeError: Cannot read properties of undefined (reading 'logger')
This error seems to be related to the vitest extension, and it's hindering my ability to run tests smoothly. Any guidance or solutions on resolving this issue would be greatly appreciated. Thank you!Reproduction
This is are the settings in
vite.confg.ts
for testingOutput
Version
0.6.3
Validations