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
joshgoldberg ~/repos/template-typescript-node-package $ cd /Users/josh/repos/template-typescript-node-package ; /usr/bin/env 'NODE_OPTIONS=--require "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/bootloader
.bundle.js" --inspect-publish-uid=http' 'VSCODE_INSPECTOR_OPTIONS={"inspectorIpc":"/var/folders/sr/j__6_9gn0dv557z0xf3p7y8h0000gn/T/node-cdp.67533-14.sock","deferredMode":false,"waitForDebugger":"","execPath":"/Users/josh/.nvm/versions/node/v18.7.0/bi
n/node","onlyEntrypoint":false,"autoAttachMode":"always","fileCallback":"/var/folders/sr/j__6_9gn0dv557z0xf3p7y8h0000gn/T/node-debug-callback-00402a5d1b51117e"}' /Users/josh/.nvm/versions/node/v18.7.0/bin/node ./node_modules/vitest/vitest.mjs run src/gree
t.test.ts
Debugger attached.
MISSING DEP Can not find dependency 'vite'
? Do you want to install vite? › (y/N)
After accepting with y (or running pnpm install vite manually), the debug command works.
JoshuaKGoldberg
changed the title
Docs: Suggested .vscode/launch.json requires installing vite
Suggested .vscode/launch.json requires installing vite
Apr 30, 2023
Clear and concise description of the problem
Going through the VS Code debugging guide in https://vitest.dev/guide/debugging.html#vscode, when I run F5 on a repo that doesn't have
vite
listed as a dependency:After accepting with
y
(or runningpnpm install vite
manually), the debug command works.Reproduction:
pnpm install
src/greet.test.ts
Suggested solution
I don't know why this is happening enough to suggest a solution 😞 sorry.
./vitest.mjs
is thebin
entry innode_modules/vitest/package.json
.Alternative
No response
Additional context
Note that
pnpm test
in that repository works without addingvitest
as a dependency.Validations
The text was updated successfully, but these errors were encountered: