Skip to content

🎥 Make videos programmatically with React

Update TimelineStack.tsx

Jonny Burger0dfd845e1052
diff --git a/packages/studio/src/components/Timeline/TimelineStack.tsx b/packages/studio/src/components/Timeline/TimelineStack.tsx
index b90b00dbe9..78e7b49732 100644
--- a/packages/studio/src/components/Timeline/TimelineStack.tsx
+++ b/packages/studio/src/components/Timeline/TimelineStack.tsx
@@ -1,4 +1,5 @@
import {useCallback, useEffect, useState} from 'react';
+import {NoReactInternals} from 'remotion/no-react';
import {SourceMapConsumer} from 'source-map';
import type {OriginalPosition} from '../../error-overlay/react-overlay/utils/get-source-map';
import {getOriginalPosition} from '../../error-overlay/react-overlay/utils/get-source-map';
@@ -32,7 +33,7 @@ export const TimelineStack: React.FC<{
const location = getLocationOfSequence(stack);
if (location) {
- fetch('/bundle.js.map')
+ fetch('/' + NoReactInternals.bundleMapName)
.then((res) => res.json())
.then((sourceMap) => {
const map = new SourceMapConsumer(sourceMap);