When using @viteest/browser in a yarn pnp environment, an error occurs that vite could not be found.
If you change nodeLinker to node-modules, it works fine, so I think this is due to one of the pnp functions, Ghost dependencies protection. Actually, when you check the code, package.json doesn't have a vite, but there is a code that you import and use from the vite. I think if you specify dependencies, it will work out. Actually, I cloned the project, specified dependencies, and tested it using npm link, and confirmed that it works fine.
Reproduction
stackBlitz does not support yarn berry and replaces it with the command.
Describe the bug
When using @viteest/browser in a
yarn pnp
environment, an error occurs that vite could not be found.If you change nodeLinker to node-modules, it works fine, so I think this is due to one of the pnp functions, Ghost dependencies protection. Actually, when you check the code, package.json doesn't have a vite, but there is a code that you import and use from the vite. I think if you specify dependencies, it will work out. Actually, I cloned the project, specified dependencies, and tested it using npm link, and confirmed that it works fine.
Reproduction
stackBlitz does not support yarn berry and replaces it with the command.
An error occurs.
System Info
Used Package Manager
yarn
Validations