[Service Bus] Long is undefined after updating the long npm package from 4.0 to 5.2. #24168
Closed
2 of 6 tasks
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-author-feedback
Workflow: More information is needed from author to address the issue.
no-recent-activity
There has been no recent activity on this issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Bus
Describe the bug
There is an issue with the latest version of long, and it made the service-bus SDK unusable...
dcodeIO/long.js#109
Following the discussion started in #21208 (comment)
To Reproduce
Steps to reproduce the behavior:
import Long from 'long'
packageLong.fromString()
function to convert a string message id to long to be able to use it with the Service Bus SDK.TypeError: Cannot read properties of undefined (reading 'fromString')
Expected behavior
The conversion of string to Long to happen without issues.
Additional context
Here is the code used:
The text was updated successfully, but these errors were encountered: