Created
July 6, 2023 01:56
-
-
Save NathanWalker/a8554c1e0bba700affeb0c4672d26b0e to your computer and use it in GitHub Desktop.
Nx with SchematicNameCollisionException error patch fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js b/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js | |
index 1d2c59c..9ed0cb1 100755 | |
--- a/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js | |
+++ b/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js | |
@@ -137,7 +137,7 @@ class FileSystemEngineHostBase { | |
const aliases = description.schematics[schematicName].aliases || []; | |
for (const alias of aliases) { | |
if (allNames.indexOf(alias) != -1) { | |
- throw new SchematicNameCollisionException(alias); | |
+ // throw new SchematicNameCollisionException(alias); | |
} | |
} | |
allNames.push(...aliases); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This patch file can be downloaded into a
patches
folder at the root of your workspace.Then:
npm install patch-package -D
npx patch-package
to apply the patch.package.json
the following: