You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the dev or watch CLI commands after upgrading to version 0.23.0 results in the following error:
TypeError: Cannot read properties of undefined (reading 'mode')
at startVitest (file:///Frontend/node_modules/vitest/dist/chunk-vite-node-externalize.41bf722e.mjs:10588:57)
at CAC.start (file:///Frontend/node_modules/vitest/dist/cli.mjs:676:15)
at CAC.runMatchedCommand (file:///Frontend/node_modules/vitest/dist/cli.mjs:645:34)
at CAC.parse (file:///Frontend/node_modules/vitest/dist/cli.mjs:572:12)
at file:///Frontend/node_modules/vitest/dist/cli.mjs:659:5
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)
The start method is not called with mode when running these commands, but only cliFilters and options (that are then assigned to the wrong parameters).
Describe the bug
Running the
dev
orwatch
CLI commands after upgrading to version0.23.0
results in the following error:It's most likely caused by #1029 adding the
mode
value as an extra parameter to thestart
method:https://github.com/vitest-dev/vitest/pull/1029/files#diff-c322bc45ad914ffa25dc80a6918be23a154d9a5e28c7776c662fcb776b430f05R90
The
start
method is not called withmode
when running these commands, but onlycliFilters
andoptions
(that are then assigned to the wrong parameters).Reproduction
Try running the following commands:
vitest dev
vitest watch
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: