remotion 3.3.87 → 3.3.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,11 @@ const useVideoConfig = () => {
18
18
  if (!videoConfig) {
19
19
  if ((typeof window !== 'undefined' && window.remotion_isPlayer) ||
20
20
  isPlayer) {
21
- throw new Error('No video config found. You are probably calling useVideoConfig() from outside the component passed to <Player />. See https://www.remotion.dev/docs/player/examples for how to set up the Player correctly.');
21
+ throw new Error([
22
+ 'No video config found. Likely reasons:',
23
+ '- You are probably calling useVideoConfig() from outside the component passed to <Player />. See https://www.remotion.dev/docs/player/examples for how to set up the Player correctly.',
24
+ '- You have multiple versions of Remotion installed which causes the React context to get lost.',
25
+ ].join('-'));
22
26
  }
23
27
  throw new Error('No video config found. You are probably calling useVideoConfig() from a component which has not been registered as a <Composition />. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions for more information.');
24
28
  }
@@ -1 +1 @@
1
- export declare const VERSION = "3.3.87";
1
+ export declare const VERSION = "3.3.88";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '3.3.87';
5
+ exports.VERSION = '3.3.88';
@@ -58,7 +58,7 @@ function truthy(value) {
58
58
  }
59
59
 
60
60
  // Automatically generated on publish
61
- const VERSION = '3.3.87';
61
+ const VERSION = '3.3.88';
62
62
 
63
63
  const checkMultipleRemotionVersions = () => {
64
64
  if (typeof globalThis === 'undefined') {
@@ -652,7 +652,11 @@ const useVideoConfig = () => {
652
652
  if (!videoConfig) {
653
653
  if ((typeof window !== 'undefined' && window.remotion_isPlayer) ||
654
654
  isPlayer) {
655
- throw new Error('No video config found. You are probably calling useVideoConfig() from outside the component passed to <Player />. See https://www.remotion.dev/docs/player/examples for how to set up the Player correctly.');
655
+ throw new Error([
656
+ 'No video config found. Likely reasons:',
657
+ '- You are probably calling useVideoConfig() from outside the component passed to <Player />. See https://www.remotion.dev/docs/player/examples for how to set up the Player correctly.',
658
+ '- You have multiple versions of Remotion installed which causes the React context to get lost.',
659
+ ].join('-'));
656
660
  }
657
661
  throw new Error('No video config found. You are probably calling useVideoConfig() from a component which has not been registered as a <Composition />. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions for more information.');
658
662
  }
@@ -1,4 +1,4 @@
1
1
  // Automatically generated on publish
2
- const VERSION = '3.3.87';
2
+ const VERSION = '3.3.88';
3
3
 
4
4
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "3.3.87",
3
+ "version": "3.3.88",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",