I am getting data from sharepoint list using pnpjs and adding it to table. here when i am returning this pnp js getting below error.
Please find the below code for the same.
- private async getListData(){
- return await pnp.sp.web.lists.getByTitle("EmployeeDetails").items.select().get().then(allitems=>{
- return allitems.map(val=>{
{val.Title} {val.PhoneNumber} {val.Address} {val.Department} - });
- });
- }

Md Tahmidul AbedinRank #443 · 5.7K reputationPosted Nov 4, 2021, 11:37 PM EDT