Skip to content

🎥 Make videos programmatically with React

windows hotfix

Jonny Burgerc979fa9ebbf1
diff --git a/packages/bundler/src/static-preview.ts b/packages/bundler/src/static-preview.ts
index fcbc67bdec..78df153abf 100644
--- a/packages/bundler/src/static-preview.ts
+++ b/packages/bundler/src/static-preview.ts
@@ -12,16 +12,16 @@ export const indexHtml = (staticHash: string, editorName: string | null) =>
<title>Remotion Preview</title>
</head>
<body>
- <script>window.remotion_staticBase = "${staticHash}";</script>
+ <script>window.remotion_staticBase = "${staticHash}";</script>
${
editorName
? `<script>window.remotion_editorName = "${editorName}";</script>`
: '<script>window.remotion_editorName = null;</script>'
}
- <script>window.remotion_projectName = "${path.basename(
- process.cwd()
- )}";</script>
- <script>window.remotion_cwd = "${process.cwd()}";</script>
+ <script>window.remotion_projectName = ${JSON.stringify(
+ path.basename(process.cwd())
+ )};</script>
+ <script>window.remotion_cwd = ${JSON.stringify(process.cwd())};</script>
<div id="container"></div>
<div id="menuportal-0"></div>
diff --git a/packages/cli/src/handle-common-errors.ts b/packages/cli/src/handle-common-errors.ts
index 86bbe08fec..e49f93f646 100644
--- a/packages/cli/src/handle-common-errors.ts
+++ b/packages/cli/src/handle-common-errors.ts
@@ -1,7 +1,7 @@
import {Log} from './log';
export const handleCommonError = (err: Error) => {
- Log.error(err.message);
+ Log.error(err.stack);
if (err.message.includes('Could not play video with')) {
Log.info();
Log.info(