vitest-dev / vitest

Next generation testing framework powered by Vite.
https://vitest.dev
MIT License
13k stars 1.16k forks source link

Vitest searches for non-existent file typescript.js.map and explodes #6835

Closed aabmets closed 4 hours ago

aabmets commented 4 hours ago

Describe the bug

Running vitest in my project causes the following error to be thrown: image

Here's my package.json if you need to see dependencies.

BTW, this vitest.config.ts does not affect the error:

import { defineConfig } from 'vitest/config';

export default defineConfig({
   test: {
      server: {
         sourcemap: false
      }
   },
})

Reproduction

No idea how to reproduce, just install dependencies and run vitest

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-1270P
    Memory: 18.47 GB / 31.67 GB
  Binaries:
    Node: 22.9.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.3 - C:\Program Files\nodejs\npm.CMD
    bun: 1.1.31 - C:\Bin\bun.EXE
  Browsers:
    Edge: Chromium (130.0.2849.52)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    vite: ^5.4.10 => 5.4.10 
    vitest: ^2.1.4 => 2.1.4

Used Package Manager

npm

Validations

hi-ogawa commented 4 hours ago

This is a duplicate of https://github.com/vitest-dev/vitest/issues/6806 It's happening since last release v2.1.4. The fix is planned and please check the linked issue for workaround https://github.com/vitest-dev/vitest/issues/6806#issuecomment-2443205856.