最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

angular - Sending events to EventHub using '@azureevent-hubs' gives error - Stack Overflow

programmeradmin0浏览0评论

I'm using Angular 19 and typescript to send an event to the EventHub from the browser. The npm package that I use is @azure/event-hubs. I'm not using server side node.js.

import {EventHubProducerClient} from '@azure/event-hubs';

As soon as that application starts, I get the following error:

browser-external:util:9 Module "util" has been externalized for browser compatibility. Cannot access "util.inherits" in client code. See /guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

How can I fix this error? Should I be using a different typescript npm package?

发布评论

评论列表(0)

  1. 暂无评论