SIP.js icon indicating copy to clipboard operation
SIP.js copied to clipboard

A version that supports require

Open avraham1 opened this issue 1 year ago • 1 comments

I'm trying to install sip.js on a typescript application, and I get the error require() of ES Module not supported My problem is that compilerOptions.module is set to commonjs, and many of the models already work that way, if I change to ES2020 many modules will break.

Is it possible to work with commonjs in sip.js?

avraham1 avatar Apr 18 '23 21:04 avraham1

I also have this problem while building my app:

UnhandledPromiseRejectionWarning: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /app/node_modules/.pnpm/[email protected]/node_modules/sip.js/lib/platform/web/index.js
require() of ES modules is not supported.

alisherafat01 avatar Aug 06 '23 12:08 alisherafat01