Angular Template parse error occured while rendering 3rd party website in ASP.NET

Posted by Vishalneeraj-24503 under ASP.NET on 3/23/2021 | Points: 10 | Views : 492 | Status : [Member] [MVP] | Replies : 0
Hi All,

I am getting below issue while rendering 3rd party website in Asp.net application.
3rd party website does not render when I look at console window in Chrome browser then below issue occurs ->

Uncaught Error: Template parse errors:
Parser Error: Unexpected token . at column 47 in [gamificationOverallHistoryDatapast?gethistory(.history)?.length === 0] in https://loclhost:4320/Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://abc.com/ng:///e/e.html@462:50 (" <div class="leaderboard__history">
<div class="enough-data " [ERROR ->]*ngIf="gamificationOverallHistoryDatapast?gethistory(.history)?.length === 0">
"): ng:///e/e.html@462:50
Parser Error: Conditional expression gamificationOverallHistoryDatapast?gethistory(.history)?.length === 0 requires all 3 expressions at the end of the expression [gamificationOverallHistoryDatapast?gethistory(.history)?.length === 0] in https://loclhost:4320/Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://abc.com/ng:///e/e.html@462:50 (" <div class="leaderboard__history">
<div class="enough-data " [ERROR ->]*ngIf="gamificationOverallHistoryDatapast?gethistory(.history)?.length === 0">
"): ng:///e/e.html@462:50
Parser Error: Unexpected token . at column 47 in [gamificationOverallHistoryDatapast?gethistory(.history)?.length === 0] in https://loclhost:4320/Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://abc.com/ng:///e/e.html@462:50 (" </p>
</div>
<div class="leaderboard__history--title">[ERROR ->]{{gethistory(history).year}}</div>
<div class="leaderboard__accordion"): ng:///e/e.html@469:73
Parser Error: Unexpected token . at column 47 in [gamificationOverallHistoryDatapast?gethistory(.history)?.length > 0] in https://loclhost:4320/Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://abc.com/ng:Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://static.abc.com/bundles/angularVendor.3ceb345feb790824c934.bundle.js:1247)
at e.parse (Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://static.abc.com/bundles/angularVendor.3ceb345feb790824c934.bundle.js:1704)
at e._parseTemplate (Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://static.abc.com/bundles/angularVendor.3ceb345feb790824c934.bundle.js:1767)
at e._compileTemplate (Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://static.abc.com/bundles/angularVendor.3ceb345feb790824c934.bundle.js:1767)
at Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://static.abc.com/bundles/angularVendor.3ceb345feb790824c934.bundle.js:1767
at Set.forEach (<anonymous>)
at e._compileComponents (Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://static.abc.com/bundles/angularVendor.3ceb345feb790824c934.bundle.js:1767)
at Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://static.abc.com/bundles/angularVendor.3ceb345feb790824c934.bundle.js:1767
at It (Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://static.abc.com/bundles/angularVendor.3ceb345feb790824c934.bundle.js:1247)
at e._compileModuleAndComponents (Router.aspx?vm=ym0410loclhost&p=1&reqid=0&ref=https://static.abc.com/bundles/angularVendor.3ceb345feb790824c934.bundle.js:1767)

I am not sure whether 3rd party adapted angular before or not. Earlier we were able to render website in our application.
Kindly anyone help me on resolving above issue.




Responses

(No response found.)

Login to post response