We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132c107 commit a0edadcCopy full SHA for a0edadc
packages/sandpack/src/manager/index.ts
@@ -132,10 +132,12 @@ export default class PreviewManager {
132
{}
133
);
134
135
- let packageJSON = generatePackageJSON(
136
- this.sandboxInfo.files,
137
- this.sandboxInfo.dependencies,
138
- this.sandboxInfo.entry
+ let packageJSON = JSON.parse(
+ generatePackageJSON(
+ this.sandboxInfo.files,
+ this.sandboxInfo.dependencies,
139
+ this.sandboxInfo.entry
140
+ )['/package.json'].code
141
142
try {
143
packageJSON = JSON.parse(files['/package.json'].code);
0 commit comments