sandpack
sandpack copied to clipboard
SandpackProvider configuration in project using pnpm workspace
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?
- Create a project that uses pnpm's workspace feature.
- Configure the
SandpackProviderwith the following code snippet:
"/node_modules/foo/package.json": JSON.stringify({
name: "foo",
main: "workspace:../packages/foo",
}),
- Run the project and observe the issue.
Your Environment
| Software | Name/Version |
|---|---|
| Sandpack-client version | |
| Sandpack-react version | ^2.6.6 |
| Browser | |
| Operating System |