Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
MIT License
2.06k stars 1.19k forks source link

breaks with azure/blob-storage #31242

Closed dhowell2000 closed 3 hours ago

dhowell2000 commented 3 hours ago

when i moved azure/blob-storage from 12.18.0 to 12.25.0 it broke with this error.

2024-09-26T14:07:15.475753212Z /home/site/wwwroot/node_modules/@azure/storage-blob/dist/index.js:15443 2024-09-26T14:07:15.475794512Z const tracingClient = coreTracing.createTracingClient({ 2024-09-26T14:07:15.475800812Z                                   ^ 2024-09-26T14:07:15.475805312Z 2024-09-26T14:07:15.475808613Z TypeError: coreTracing.createTracingClient is not a function 2024-09-26T14:07:15.475813413Z     at Object. (/home/site/wwwroot/node_modules/@azure/storage-blob/dist/index.js:15443:35) 2024-09-26T14:07:15.475818613Z     at Module._compile (node:internal/modules/cjs/loader:1358:14) 2024-09-26T14:07:15.475822113Z     at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) 2024-09-26T14:07:15.475825513Z     at Module.load (node:internal/modules/cjs/loader:1208:32) 2024-09-26T14:07:15.475829513Z     at Module._load (node:internal/modules/cjs/loader:1024:12) 2024-09-26T14:07:15.475833513Z     at Module.require (node:internal/modules/cjs/loader:1233:19) 2024-09-26T14:07:15.475838313Z     at Module.patchedRequire [as require] (/home/site/wwwroot/node_modules/diagnostic-channel/dist/src/patchRequire.js:16:46) 2024-09-26T14:07:15.475852213Z     at require (node:internal/modules/helpers:179:18) 2024-09-26T14:07:15.475856113Z     at Object. (/home/site/wwwroot/services/blobStorageService.js:3:79) 2024-09-26T14:07:15.475898714Z     at Module._compile (node:internal/modules/cjs/loader:1358:14)

I tried explicitly adding in @azure/core-tracing with NPM and that did not solve the issue. The only thing that fixed it was moving back to @azure/storage-blob 12.18. It works fine locally. It does not work when i push to my Azure Web App.

Please advise on what to do. I don't want to be perpetually stuck at 12.18.

Thanks

github-actions[bot] commented 3 hours ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

maorleger commented 3 hours ago

Hi there,

Thanks for opening this issue. This looks to be a duplicate of #30147

I will close this but let's continue the conversation on #30147 - we want to help!