SIP.js
SIP.js copied to clipboard
A version that supports require
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?
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.