Commit 5fedfc0
fix(@angular/build): show clear error when styleUrl points to a TypeScript file
Reject TypeScript files (.ts, .tsx, .mts, .cts) used as component
resources in the Angular compiler host. Previously this caused confusing
downstream errors (e.g., rxjs-related). Now the file is treated as not
found, producing a clear 'Could not find stylesheet file' message.
Fixes #321931 parent 6ced3da commit 5fedfc0
File tree
2 files changed
+32
-9
lines changed- packages/angular/build/src
- builders/application/tests/behavior
- tools/angular
2 files changed
+32
-9
lines changedLines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
67 | 86 | | |
68 | 87 | | |
69 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
| |||
255 | 261 | | |
256 | 262 | | |
257 | 263 | | |
258 | | - | |
259 | | - | |
| 264 | + | |
| 265 | + | |
260 | 266 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
267 | 270 | | |
268 | | - | |
| 271 | + | |
| 272 | + | |
269 | 273 | | |
0 commit comments