# Error: Cannot find package

**URL:** <https://community.postman.com/t/error-cannot-find-package/60575>\
**Category:** Help Hub\
**Tags:** scripts, bug, package-library\
**Created:** [May 2, 2024, 5:09pm UTC](https://community.postman.com/t/error-cannot-find-package/60575 "2024-05-02T17:09:32Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![payload-geoscienti29](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@payload-geoscienti29](https://community.postman.com/u/payload-geoscienti29)\
**Post date:** [May 7, 2024, 10:56am UTC](https://community.postman.com/t/error-cannot-find-package/60575/29 "2024-05-07T10:56:39Z")

</div>

Working fine now. Facing another issue in the package

> [@TypeError: Cannot read properties of undefined (reading 'map](https://community.postman.com/t/typeerror-cannot-read-properties-of-undefined-reading-map/60754):
>
> Created a package with function and invoked from request. But getting error Package: function extractTable(variableName) { var Itemdata = responseBody.map(item =\> item[variableName]); pm.environment.set(variableName, JSON.stringify(Itemdata)); } module.exports = { extractTable } Script: const db = pm.require(‘@zz-xxxx-yy/processcollectionvariable’); db.extractTable(‘itetest’); Error : Couldn’t evaluate the test script: TypeError: Cannot read properties of undefined (reading ‘map’)

---

_[View the full topic](https://community.postman.com/t/error-cannot-find-package/60575)._
