Skip to content

Commit 974a472

Browse files
committed
fix: check that version exists
1 parent 446e5ef commit 974a472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/extension/src/worker/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ emitter.on('message', async function onMessage(message: any) {
2525
pathToFileURL(normalizeDriveLetter(data.meta.vitestNodePath)).toString()
2626
) as typeof import('vitest/node')
2727

28-
const isOld = Number(vitestModule.version[0]) < 4
28+
const isOld = !vitestModule.version || (Number(vitestModule.version[0]) < 4)
2929
const workerName = isOld ? './workerLegacy.js' : './workerNew.js'
3030
const workerPath = pathToFileURL(join(__dirname, workerName))
3131
const initModule = await import(workerPath.toString())

0 commit comments

Comments
 (0)