 we are importing the specific sub modules we need and attaching the functionality for lists to web and items to list
import &quot;@pnp/sp/webs&quot;;
import &quot;@pnp/sp/lists/web&quot;;
import &quot;@pnp/sp/items/list&quot;;

// placeholder for fully configuring the sp interface
const sp = spfi();

const itemData = await sp.web.lists.getById('00000000-0000-0000-0000-000000000000').items.getById(1)();
</code></pre>
<p>Above we are being very specific in what we are importing, but you can also import entir