vitest browser __vi_esm_0__.default is not a function #4097
Labels
feat: browser
Issues and PRs related to the browser runner
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
When executing the tests, each test fails because of
TypeError: __vi_esm_0__.default is not a function
.After reducing it to the minimal reproducible example, I could isolate that the issue is the package
pino
.You can find "working" tests here
src/browser/working.spec.ts
But the same code that uses
pino
is not able to load it:src/browser/logger.spec.ts
Reproduction
git clone https://github.com/NicoVogel/logger-wrapper
git checkout bug/vitest-browser-vi-esm-0-default-not-a-function
pnpm install
cd packages/logger
pnpm exec vitest -c vitest.browser.ts
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: