postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

Package Library works on web but not on desktop app

Open dmturn364 opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

I created a simple package library following the steps in the documentation (https://learning.postman.com/docs/writing-scripts/package-library/#write-code-in-a-package). While I am able to import and use this package on through the web, I am unable to get the external package to work from the desktop app. I keep getting a response back stating There was an error in evaluating the Pre-request Script:Error: Cannot find package '@<teamName>/<packageName>'

I have upgraded to the most recent Postman version 11.0.6 but the "Desktop Platform Version" is showing 11.0.4.

Steps To Reproduce

  1. Create a new package library and save for the team
  2. Import your package in a pre-request or post-response script
  3. Call the exported function from the package library.
  4. Send request to trigger script.
  5. From the web, the package library works. Through the desktop app, it returns the error.

Screenshots or Videos

No response

Operating System

Windows

Postman Version

11.0.6

Postman Platform

Both

User Account Type

Signed In User

Additional Context?

No response

dmturn364 avatar May 03 '24 16:05 dmturn364