From 91b653ed64a410aff97acfa76f1a055c731a8085 Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Tue, 17 Jan 2023 16:35:53 -0500 Subject: [PATCH] =?UTF-8?q?fix(react):=20install=20tsconfig-paths-webpack-?= =?UTF-8?q?plugin=20when=20converting=20CRA=E2=80=A6=20(#14442)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/cra-to-nx/src/lib/cra-to-nx.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/cra-to-nx/src/lib/cra-to-nx.ts b/packages/cra-to-nx/src/lib/cra-to-nx.ts index 9046587d46336..808a90772bdc5 100644 --- a/packages/cra-to-nx/src/lib/cra-to-nx.ts +++ b/packages/cra-to-nx/src/lib/cra-to-nx.ts @@ -131,7 +131,13 @@ async function reorgnizeWorkspaceStructure(options: NormalizedOptions) { addDependencies(options.pmc, 'vite', 'vitest', '@vitejs/plugin-react'); removeDependencies(options.pmc, '@nrwl/jest'); } else { - addDependencies(options.pmc, '@craco/craco', 'cross-env', 'react-scripts'); + addDependencies( + options.pmc, + '@craco/craco', + 'cross-env', + 'react-scripts', + 'tsconfig-paths-webpack-plugin' + ); } output.log({ title: '🎉 Done!' });