Sonarqube Failed to load module 'node:os' from vitest.config.ts on Azure DevOps Windows image

I use Azure DevOps and a Windows image for my analysis pipeline. I just switched from Jest to vitest recently and now see the following entry in the log:

Sonarqube Failed to load module ‘node:os’ from vitest.config.ts Illegal char <:> at index 4: node:os

It’s about an import like this: import * as os from ‘node:os’

I guess SQ uses an own TS parser and cannot parse node:os correctly? Can this be? How can I fix this?

cheers

Hello @jreimone,

can you please share the full debug analysis logs?

Cheers