Skip to content

Commit babd361

Browse files
mihailgolbanMihail Golban
and
Mihail Golban
authored
fix(nest): exclude react-specific packages when generating nx nest monorepo (#21153)
Co-authored-by: Mihail Golban <[email protected]>
1 parent ecddfe1 commit babd361

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/node/src/generators/application/application.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,11 @@ export async function applicationGeneratorInternal(tree: Tree, schema: Schema) {
432432
const { ensureDependencies } = await import(
433433
'@nx/webpack/src/utils/ensure-dependencies'
434434
);
435-
tasks.push(ensureDependencies(tree, { uiFramework: 'react' }));
435+
tasks.push(
436+
ensureDependencies(tree, {
437+
uiFramework: options.isNest ? 'none' : 'react',
438+
})
439+
);
436440
}
437441
}
438442

0 commit comments

Comments
 (0)