-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
MgmtThis issue is related to a management-plane library.This issue is related to a management-plane library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
- Package Name: @azure/arm-resourcegraph
- Package Version: 4.2.1
- Operating system: Linux
- nodejs
- version: 24
- browser
- name/version: N/A
- typescript
- version: N/A
Describe the bug
Getting TypeError: Expected signal to be an instanceof AbortSignal when using the package. The issue comes from bundle and node-fetch package in dependencies. Similar issue from blob sdk: #28059
To Reproduce
Steps to reproduce the behavior:
- Any code that use ResourceGraphClient to query for resources. The bundle command I use:
esbuild index.ts --bundle --platform=node --minify --target=node24 --format=esm --outfile=dist/index.js. The output js won't work under node 22, 23 or 24.
Code
const resourceGraphClient = new ResourceGraphClient(azureCredential);
let result = await resourceGraphClient.resources({
query: query
});Expected behavior
The bundle output should work with the recent nodejs version.
Additional context
pnpm why node-fetch
Legend: production dependency, optional only, dev only
[email protected] /home/derek/repo/azure-health-event-export
dependencies:
@azure/arm-resourcegraph 4.2.1
├─┬ @azure/ms-rest-azure-js 2.1.0
│ └─┬ @azure/ms-rest-js 2.7.0
│ └── node-fetch 2.7.0
└─┬ @azure/ms-rest-js 2.7.0
└── node-fetch 2.7.0Issues mentioning @azure/ms-rest-js hasn't published a version since - July 2023
Azure/ms-rest-js#492
Metadata
Metadata
Assignees
Labels
MgmtThis issue is related to a management-plane library.This issue is related to a management-plane library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that