Skip to content

[BUG]Cannot find pnpm #1259

@oleyeye

Description

@oleyeye

Describe the bug
I'm working on regular React project. And I can run unit test case with vscode jest extension in 'Run Test' mode. Everything is good. But when I try to use 'Debug Test' to debug same test case. It failed with:

Error: Cannot find module 'C:\xxx\pnpm'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
    at Module._load (node: internal/modules/cjs/loader:1043:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
    at node:internal/main/run_main_module:28:49 {
       code: 'MODULE_NOT_FOUND',
       requireStack: []
}

Any hints on this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions