rrors because TS will see that line as a type only import and drop it. You need to include both <code>import { IWeb } from "@pnp/sp/webs"</code> and <code>import "@pnp/sp/webs"</code> to ensure the webs functionality is correctly included. You can see this in the last example below.</p>
</blockquote>
<pre><code class="language-TypeScript">// the sp var now has almost nothing attached at import time and relies on

// we need to import each of the pieces we need to &quot;attach&quot; them for chaining
// here