Skip to content

Commit a0edadc

Browse files
author
Ives van Hoorne
committed
Update error
1 parent 132c107 commit a0edadc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/sandpack/src/manager/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,12 @@ export default class PreviewManager {
132132
{}
133133
);
134134

135-
let packageJSON = generatePackageJSON(
136-
this.sandboxInfo.files,
137-
this.sandboxInfo.dependencies,
138-
this.sandboxInfo.entry
135+
let packageJSON = JSON.parse(
136+
generatePackageJSON(
137+
this.sandboxInfo.files,
138+
this.sandboxInfo.dependencies,
139+
this.sandboxInfo.entry
140+
)['/package.json'].code
139141
);
140142
try {
141143
packageJSON = JSON.parse(files['/package.json'].code);

0 commit comments

Comments
 (0)