I have a webpart, which works on my localhost fine, i can read items from List "A", and can write items in List "B".

I deploy it on my site collection, so I add the sppkg file in Admin Center to the apps, I can activate the app on the site, and I find it on my Wep-Part list.
I add the the site, but the Choice Field does not get the data from List "A" (not like in localhost). The console displays many errors, but some on is very interested:

> 
> GET [https://helloworld.sharepoint.com/teams/Test/SitePages/\_api/web/lists/getByTitle('A')/items?$select=Title,Member](https://helloworld.sharepoint.com/teams/Test/SitePages/_api/web/lists/getByTitle(%27A%27)/items?$select=Title,Member) 404
> 
> 
> 

the list "A" - on this link - is not available, ths SPO means, it does not exist. The right link is:

> 
> [https://helloworld.sharepoint.com/teams/Test/\_api/web/lists/getByTitle('A')/items?$select=Title,Member](https://helloworld.sharepoint.com/teams/Test/_api/web/lists/getByTitle(%27A%27)/items?$select=Title,Member).
> 
> 
> 

the last link gives me the xml Code from the List "A". But the first one gives me below:

> 
> Hmmm...this page is unfortunately not available
> 
> 
> 

Here is my Typescript Code:

```
  private getListItems = async () => {
   const listItems = await pnp.sp.web.lists.getByTitle('A').items.select('Title','Member').get();
   return listItems;

};

```

I tried that too:

```
import { sp } from "@pnp/sp/presets/all";  

  private getListItems = async () => {
   const listItems = await sp.web.lists.getByTitle('A').items.select('Title','Member').get();
   return listItems;
};

```

and that too:

```
private getListItems = async () => {
  (async () => { 
  const listName = "A";

  const listItems = await sp.web.lists.getByTitle(listName).items.select('Title','Member').get();
  console.table(listItems);
})().catch(console.log)

};

```

but nothing works...

I do after any changes the commands:

> 
> gulp build
> 
> 
> 

> 
> gulp bundle --ship
> 
> 
> 

> 
> gulp package-solution --ship
> 
> 
> 

And I upload agein the sppkg file to the Admin Center.
I refresh the app on the Site collection, but it does not help.

Has anyone some solution? Thank You!