I have created a spfx-angular-element demo with reference to the below link:
https://gonadn.medium.com/spfx-with-angular-element-crud-operations-using-pnpjs-5a8a18ed6e43
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?