# Can't use packages from gRPC before/after scripts

**URL:** <https://community.postman.com/t/cant-use-packages-from-grpc-before-after-scripts/70722>\
**Category:** Help Hub\
**Tags:** package-library\
**Created:** [November 1, 2024, 1:25pm UTC](https://community.postman.com/t/cant-use-packages-from-grpc-before-after-scripts/70722 "2024-11-01T13:25:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![descent-module-ast18](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/descent-module-ast18/32/30605_2.png) [@descent-module-ast18](https://community.postman.com/u/descent-module-ast18)\
**Post date:** [November 1, 2024, 1:25pm UTC](https://community.postman.com/t/cant-use-packages-from-grpc-before-after-scripts/70722/1 "2024-11-01T13:25:42Z")

</div>

I’m trying to leverage the new package functionality from gRPC before invoke/after response scripts but I get a `TypeError: pm.require is not a function`. Are packages not supported for the gRPC flow?

For version:

Version 11.18.2  
UI Version: 11.18.2-ui-241030-0928  
Desktop Platform Version: 11.18.0 (11.18.0)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 1, 2024, 2:42pm UTC](https://community.postman.com/t/cant-use-packages-from-grpc-before-after-scripts/70722/2 "2024-11-01T14:42:22Z")

</div>

Hey @descent-module-ast18 👋

Welcome to the Postman Community! :postman:

Currently, the Package Library is not available for non-HTTP scripts. There is an open feature request on our Issue Tracker for this functionality to be included.

> <https://github.com/postmanlabs/postman-app-support/issues/13111>
>
> \### Is there an existing request for this feature?
> 
> \- \[X\] I have searched the ex…isting issues for this feature request and I know that duplicates will be closed
> 
> \### Is your feature request related to a problem?
> 
> I would like to reuse javascript code in gRPC request scripts to keep my code DRY
> 
> \### Describe the solution you'd like
> 
> Access package library in gRPC request scripts
> 
> \### Describe alternatives you've considered
> 
> Currently I am copy-pasting the code across requests, which is very brittle and time consuming
> 
> \### Additional context
> 
> \_No response\_

Not timelines are available for the release of this in the platform just yet.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 1, 2024, 2:42pm UTC](https://community.postman.com/t/cant-use-packages-from-grpc-before-after-scripts/70722/3 "2024-12-01T14:42:33Z")

</div>

Closed on December 1, 2024, 2:42pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
