Vitest process starts properly at initial launch, but fails to refresh (Yarn PnP, Monorepo) #505
Replies: 2 comments
-
Seems like not problem of vitest or vitest extension. require.resolve() returns different value between initial load and second load - initial, error so take pnp approach but second, success - I will taking a deeper look in it |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing, because this seems to bug. filed issue #507 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the VSCode Vitest extension in a monorepo with Yarn PnP. The initial execution of the Vitest process works correctly, but there is an issue with the refresh not working properly.
One strange thing in the attached error log is that during the initial execution, Vitest runs with several parameters like
/Users/choejun-yeong/.nvm/versions/node/v20.16.0/bin/node --require /Users/choejun-yeong/3o3/3o3_service/.pnp.cjs --experimental-loader file:///Users/choejun-yeong/3o3/3o3_service/.pnp.loader.mjs
, but during the refresh, it logs as/Users/choejun-yeong/.nvm/versions/node/v20.16.0/bin/node
with no parameters at all.Before reporting as an issue, I wanted to check if there is a known solution for this.
And sorry for cannot providing a repro because this is private repo code.
Here is the attached error message:
Beta Was this translation helpful? Give feedback.
All reactions