Package loupe
seems to be an ES Module but shipped in a CommonJS package #63
Open
Description
I upgraded to vitest 0.30.1
and started getting this error. It says to file an issue against the repo, is this correct?
Module E:/ComfyBox/node_modules/.pnpm/[email protected]/node_modules/loupe/index.js:7 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "loupe" asking them to ship the file in .mjs extension or add "type": "module" in their package.json.
As a temporary workaround you can try to inline the package by updating your config:
// vitest.config.js
export default {
test: {
deps: {
inline: [
"loupe"
]
}
}
}
Metadata
Assignees
Labels
No labels