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

bug: Skia template overrides webpack config more than once #4450

Closed
thecmdrunner opened this issue Nov 1, 2024 · 1 comment · Fixed by #4452
Closed

bug: Skia template overrides webpack config more than once #4450

thecmdrunner opened this issue Nov 1, 2024 · 1 comment · Fixed by #4452
Labels
bug Something isn't working

Comments

@thecmdrunner
Copy link
Contributor

I created a new project with the Remotion Skia template & selected Tailwind, but got this error while trying to run Remotion Studio.

Error: You specified the Config.overrideWebpackConfig() multiple times, which is not supported.
Combine all Webpack overrides into a single one.
You can curry multiple overrides:

Instead of:

  Config.overrideWebpackConfig((currentConfiguration) => {
    return enableScss(currentConfiguration);
  });
  Config.overrideWebpackConfig((currentConfiguration) => {
    return enableTailwind(currentConfiguration);
  });

Do this:

  Config.overrideWebpackConfig((currentConfiguration) => {
    return enableScss(enableTailwind(currentConfiguration));
  });

Read more: https://www.remotion.dev/docs/config#overridewebpackconfig

Here's what the config looked like:

/**
 * Note: When using the Node.JS APIs, the config file
 * doesn't apply. Instead, pass options directly to the APIs.
 *
 * All configuration options: https://remotion.dev/docs/config
 */
import { Config } from "@remotion/cli/config";
import { enableSkia } from "@remotion/skia/enable";
import { enableTailwind } from "@remotion/tailwind";

Config.setVideoImageFormat("jpeg");
Config.setOverwriteOutput(true);

Config.overrideWebpackConfig((config) => {
  return enableSkia(config);
});

Config.setConcurrency(2);
Config.setChromiumOpenGlRenderer("angle");
Config.overrideWebpackConfig(enableTailwind);
@JonnyBurger
Copy link
Member

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants