Incorrect error message: Could not resolve /my/missing/import relative to [object Object]
#30832
Labels
area: compiler
Issues related to `ngc`, Angular's template compiler
freq1: low
needs: clarification
This issue needs additional clarification from the reporter before the team can investigate.
needs reproduction
This issue needs a reproduction in order for the team to investigate further
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
regression
Indicates than the issue relates to something that worked in a previous version
state: confirmed
type: bug/fix
Milestone
馃悶 bug report
Affected Package
The issue is caused by package @angular/compiler
Is this a regression?
Yes, the previous version in which this bug was not present was: prior to pull 26759
Description
On line 423-424 in static_symbol_resolver in pull 26759 the following line was changed to call
self.host.getMetadataFor
on the filepath. This change causes the returned value to be an object, which is then inserted into the template string, producing the output[object Object]
.On a separate note the period at the end of the statement is duplicated when it is logged out so it could be removed here.
馃敩 Minimal Reproduction
Can be reproduced by forcing the relevant error to be thrown, or simply taking the template string provided and passing it any object type where
self.host.getMetadataFor(sourceSymbol.filePath)
is.馃敟 Exception or Error
馃實 Your Environment
Angular Version:
8.1.0-beta.0
Anything else relevant? Google Environment
The text was updated successfully, but these errors were encountered: