Skip to content

Commit

Permalink
chore: Run with --legacy-peer-deps for React 19
Browse files Browse the repository at this point in the history
Needed until there is a new Lit release
  • Loading branch information
Artur- committed Jan 10, 2025
1 parent 2a4dda7 commit 39f17b0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;

import com.vaadin.experimental.FeatureFlags;
import com.vaadin.flow.internal.Pair;
import com.vaadin.flow.server.Constants;
import com.vaadin.flow.server.ExecutionFailedException;
Expand Down Expand Up @@ -267,6 +268,9 @@ private void runNpmInstall() throws ExecutionFailedException {
}

npmInstallCommand.add("--ignore-scripts");
if (options.getFeatureFlags().isEnabled(FeatureFlags.REACT19)) {
npmInstallCommand.add(" --legacy-peer-deps");
}

if (options.isCiBuild()) {
if (options.isEnablePnpm() || options.isEnableBun()) {
Expand Down

0 comments on commit 39f17b0

Please sign in to comment.