Skip to content

🎥 Make videos programmatically with React

Update _check-rsc.ts

Jonny Burgera854f0375e46
diff --git a/packages/player/src/_check-rsc.ts b/packages/player/src/_check-rsc.ts
index f7eaaf0252..dc700c0b7a 100644
--- a/packages/player/src/_check-rsc.ts
+++ b/packages/player/src/_check-rsc.ts
@@ -6,11 +6,11 @@ if (typeof createContext !== 'function') {
'If you are in a React Server Component, turn it into a client component by adding "use client" at the top of the file.',
'',
'Before:',
- ' import {useCurrentFrame} from "remotion";',
+ ' import {Player} from "@remotion/player";',
'',
'After:',
' "use client";',
- ' import {useCurrentFrame} from "remotion";',
+ ' import {Player} from "@remotion/player";',
];
throw new Error(err.join('\n'));