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
> git clone git@github.com:frank-weindel/vitest-3286-browser-typescript.git
>cd vitest-3286-browser-typescript
> pnpm i
> pnpm up -L
> pnpm test:browser
The browser console complains with :
Uncaught (in promise) SyntaxError: The requested module '/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.js?v=968211a6' does not provide an export named '__vi_inject__' (at index.js?v=968211a6:3:10)
Doing the same unde nmp works (just need to remove the optimizeDeps in vite.conf.js when running with latest vite and vitest)
Describe the bug
running vitest in browser mode fail when dependencies are installed via pnpm
Reproduction
cloning this test repo and install with pnpm
The browser console complains with :
Doing the same unde nmp works (just need to remove the
optimizeDeps
in vite.conf.js when running with latest vite and vitest)Potentiall linked issues: #3124
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: