remotion-dev / remotion

šŸŽ„ Make videos programmatically with React
https://remotion.dev
Other
20.83k stars 1.05k forks source link

Create Video fails, Cannot find module 'react/jsx-runtime' #4425

Closed peterfox closed 4 weeks ago

peterfox commented 1 month ago

When I run npx create-video@latest --hello-world it fails with the following error:

node:internal/modules/cjs/loader:1252
  throw err;
  ^

Error: Cannot find module 'react/jsx-runtime'
Require stack:
- /Users/peterfox/.npm/_npx/f45e76a8b7cfddff/node_modules/create-video/dist/templates.js
- /Users/peterfox/.npm/_npx/f45e76a8b7cfddff/node_modules/create-video/dist/select-template.js
- /Users/peterfox/.npm/_npx/f45e76a8b7cfddff/node_modules/create-video/dist/resolve-project-root.js
- /Users/peterfox/.npm/_npx/f45e76a8b7cfddff/node_modules/create-video/dist/init.js
- /Users/peterfox/.npm/_npx/f45e76a8b7cfddff/node_modules/create-video/bin.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
    at Function._load (node:internal/modules/cjs/loader:1075:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:141:16)
    at Object.<anonymous> (/Users/peterfox/.npm/_npx/f45e76a8b7cfddff/node_modules/create-video/dist/templates.js:4:23)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Object..js (node:internal/modules/cjs/loader:1689:10)
    at Module.load (node:internal/modules/cjs/loader:1318:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/peterfox/.npm/_npx/f45e76a8b7cfddff/node_modules/create-video/dist/templates.js',
    '/Users/peterfox/.npm/_npx/f45e76a8b7cfddff/node_modules/create-video/dist/select-template.js',
    '/Users/peterfox/.npm/_npx/f45e76a8b7cfddff/node_modules/create-video/dist/resolve-project-root.js',
    '/Users/peterfox/.npm/_npx/f45e76a8b7cfddff/node_modules/create-video/dist/init.js',
    '/Users/peterfox/.npm/_npx/f45e76a8b7cfddff/node_modules/create-video/bin.js'
  ]
}

Node.js v22.10.0

This happens with Yarn/Bun as well.

Bug Report šŸ›

Not much to add other than the installed node version is v22.10.0 and this is on MacOS 15.0.1.

Swapping to v20.18.0 didn't help

Jan0707 commented 1 month ago

Ran into the same issue, falling back to 4.0.221 did the trick for me

npx create-video@4.0.221
peterfox commented 1 month ago

Ran into the same issue, falling back to 4.0.221 did the trick for me

npx create-video@4.0.221

Thank you, that appears to work

JonnyBurger commented 4 weeks ago

Sorry about this šŸ« 

I just published an emergency release for create-video only, it should work now!

peterfox commented 4 weeks ago

@JonnyBurger Just tried it and it works. Thank you šŸŽ‰