diff --git a/content/cli/v8/using-npm/dependency-selectors.md b/content/cli/v8/using-npm/dependency-selectors.md index f6d212b8476..7684b74eb4e 100644 --- a/content/cli/v8/using-npm/dependency-selectors.md +++ b/content/cli/v8/using-npm/dependency-selectors.md @@ -152,7 +152,7 @@ const arb = new Arborist({}) ```js // root-level -arb.loadActual((tree) => { +arb.loadActual().then(async (tree) => { // query all production dependencies const results = await tree.querySelectorAll('.prod') console.log(results) @@ -161,7 +161,7 @@ arb.loadActual((tree) => { ```js // iterative -arb.loadActual((tree) => { +arb.loadActual().then(async (tree) => { // query for the deduped version of react const results = await tree.querySelectorAll('#react:not(:deduped)') // query the deduped react for git deps