sandpack icon indicating copy to clipboard operation
sandpack copied to clipboard

SandpackProvider configuration in project using pnpm workspace

Open achuan9 opened this issue 2 years ago • 0 comments

Bug report

Packages affected

  • [ ] sandpack-client
  • [x] sandpack-react

Description of the problem

I am using sandpack-react and I encountered an issue while configuring the SandpackProvider for a project that uses pnpm's workspace feature.

What were you doing when the problem occurred?

I was configuring the SandpackProvider in my project.

What steps can we take to reproduce the problem?

  1. Create a project that uses pnpm's workspace feature.
  2. Configure the SandpackProvider with the following code snippet:
"/node_modules/foo/package.json": JSON.stringify({
          name: "foo",
          main: "workspace:../packages/foo",
}),
  1. Run the project and observe the issue.

Your Environment

Software Name/Version
Sandpack-client version
Sandpack-react version ^2.6.6
Browser
Operating System

achuan9 avatar Jun 06 '23 12:06 achuan9