You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/ngtools/webpack/src/transformers/replace_resources.ts
+3-10Lines changed: 3 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -171,9 +171,7 @@ function visitComponentMetadata(
171
171
const{ line }=sourceFile.getLineAndCharacterOfPosition(node.initializer.getStart());
172
172
173
173
thrownewError(
174
-
`Component '${className}' in '${sourceFile.fileName}' contains a non-string literal`+
175
-
` 'templateUrl' value at line ${line+1}. The 'templateUrl' property must be a`+
176
-
` string literal. Expressions, variables, or other dynamic values are not supported.`,
174
+
`Component '${className}' in '${sourceFile.fileName}' contains a non-string literal 'templateUrl' value at line ${line+1}. The 'templateUrl' property must be a string literal. Expressions, variables, or other dynamic values are not supported.`,
177
175
);
178
176
}
179
177
@@ -219,10 +217,7 @@ function visitComponentMetadata(
219
217
const{ line }=sourceFile.getLineAndCharacterOfPosition(element.getStart());
220
218
221
219
thrownewError(
222
-
`Component '${className}' in '${sourceFile.fileName}' contains a non-string`+
223
-
` literal '${name}' value at line ${line+1}. The '${name}' property must`+
224
-
` contain string literals. Expressions, variables, or other dynamic values`+
225
-
` are not supported.`,
220
+
`Component '${className}' in '${sourceFile.fileName}' contains a non-string literal '${name}' value at line ${line+1}. The '${name}' property must contain string literals. Expressions, variables, or other dynamic values are not supported.`,
226
221
);
227
222
}
228
223
}
@@ -243,9 +238,7 @@ function visitComponentMetadata(
243
238
const{ line }=sourceFile.getLineAndCharacterOfPosition(node.initializer.getStart());
244
239
245
240
thrownewError(
246
-
`Component '${className}' in '${sourceFile.fileName}' contains a non-string literal`+
247
-
` '${name}' value at line ${line+1}. The '${name}' property must be a`+
248
-
` string literal. Expressions, variables, or other dynamic values are not supported.`,
241
+
`Component '${className}' in '${sourceFile.fileName}' contains a non-string literal '${name}' value at line ${line+1}. The '${name}' property must be a string literal. Expressions, variables, or other dynamic values are not supported.`,
0 commit comments