You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:95107) UnhandledPromiseRejectionWarning: Error: No known conditions for "./node" entry in "vitest" package
Require stack:
- /my/project/vite.config.cjs
- /my/project/.yarn/__virtual__/vite-virtual-a0fb16a869/0/cache/vite-npm-2.8.4-148753d590-0531ea17d3.zip/node_modules/vite/dist/node/chunks/dep-971d9e33.js
- /my/project/.yarn/__virtual__/vite-virtual-a0fb16a869/0/cache/vite-npm-2.8.4-148753d590-0531ea17d3.zip/node_modules/vite/dist/node/index.js
at bail (/my/project/.pnp.cjs:20914:8)
at resolve (/my/project/.pnp.cjs:20971:32)
at applyNodeExportsResolution (/my/project/.pnp.cjs:21243:28)
at resolveUnqualifiedExport (/my/project/.pnp.cjs:21756:35)
at resolveRequest (/my/project/.pnp.cjs:21827:99)
at Object.resolveRequest (/my/project/.pnp.cjs:21902:26)
at Function.external_module_.Module._resolveFilename (/my/project/.pnp.cjs:20732:34)
at Function.external_module_.Module._load (/my/project/.pnp.cjs:20554:48)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
Describe the bug
When using vitest (without
type: module
) I get an error when using the sample config file on https://vitest.dev/guide/features.html#coverage:The error I receive is:
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-49tr2g
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: