We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6b82f6 commit 1ab1c6cCopy full SHA for 1ab1c6c
packages/angular_devkit/schematics/src/rules/template.ts
@@ -62,7 +62,7 @@ export function applyContentTemplate<T>(options: T): FileOperator {
62
content: Buffer.from(templateImpl(decodedContent, {})(options)),
63
};
64
} catch (e) {
65
- if ((e as NodeJS.ErrnoException).code === 'ERR_ENCODING_INVALID_ENCODED_DATA') {
+ if (e instanceof TypeError) {
66
return entry;
67
}
68
0 commit comments