cli remotion render Video out/temp.mp4
this error occurred: Error while getting compositions
#2445
-
Yesterday, everything was functioning properly when I rendered using the CLI. However, today, when I attempted to do it again, I encountered the following error. I haven't made any changes to the code. Do you have any insights into what could be causing this issue? I have already attempted deleting the node_modules directory and clearing the yarn cache for a fresh installation, but these methods have not resolved the problem. but when I execute PS K:\remotion> yarn video
yarn run v1.22.19
$ remotion render Video out/temp.mp4
(1/3) ╭───────────────────╮ Bundled code 3554ms
An error occurred:
Error: Error while getting compositions: Tried to go to http://localhost:3009/index.html and verify that it is a Remotion project by checking if window.getStaticCompositions is defined. However, the function was undefined, which indicates that this is not a valid Remotion project. Please check the URL you passed.
at innerSetPropsAndEnv (K:\remotion\node_modules\@remotion\renderer\dist\set-props-and-env.js:82:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async innerGetCompositions (K:\remotion\node_modules\@remotion\renderer\dist\get-compositions.js:26:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@JonnyBurger Do you know what's the reason please? |
Beta Was this translation helpful? Give feedback.
-
Hi @winner106! It appears like there are many dev servers running at once, therefore port 3009 had to be used. While that is okay, it seems like there are other dev servers which might cause a resource conflict. The best way would be to open Indeed, two apps can use the same port, it's problems like facebook/docusaurus#8202 which can cause this. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/orgs/remotion-dev/projects/7?pane=issue&itemId=28541070 |
Beta Was this translation helpful? Give feedback.
Hi @winner106!
It appears like there are many dev servers running at once, therefore port 3009 had to be used. While that is okay, it seems like there are other dev servers which might cause a resource conflict.
The best way would be to open
http://localhost:9000
in the browser and see if there is another app running.Indeed, two apps can use the same port, it's problems like facebook/docusaurus#8202 which can cause this.