Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix cjs export of google fonts #4444

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Conversation

Calvein
Copy link
Contributor

@Calvein Calvein commented Oct 31, 2024

I'm requiring a google font package from node in common js and I get this error:

Error: Cannot find module '/blabla/node_modules/@remotion/google-fonts/dist/cjs/WorkSans.cjs'

It's because the cjs files don't exist and are .js instead.

A quick look into the repo shows that it's the only place where we have this issue https://github.com/search?q=repo%3Aremotion-dev%2Fremotion%20%22*.cjs%22&type=code

I hope that's the correct fix because I know how much publishing for ESM/CJS is a nightmare 😱

Copy link

vercel bot commented Oct 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bugs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2024 8:48am
remotion ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2024 8:48am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
remotion-convert ⬜️ Skipped (Inspect) Oct 31, 2024 8:48am

@JonnyBurger
Copy link
Member

Oh, thanks for catching that!

@JonnyBurger JonnyBurger merged commit 677eef3 into remotion-dev:main Oct 31, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants