I have created a spfx-angular-element demo with reference to the below link:
It is working correctly in the SharePoint workbench. Kindly refer to the below image,
When I create the package and add an app in to the SharePoint page, it is throwing the below error in the SharePoint list API call (added SitePages in API call)
Kindly refer to the below image:
Can anyone please assist me with the same?