You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While starting the project in production mode, I receive an error
> node dist/index.js
/project/node_modules/ringcentral-softphone/dist/src/softphone.js:17
const wait_for_async_1 = __importDefault(require("wait-for-async"));
^
Error [ERR_REQUIRE_ESM]: require() of ES Modul /project/node_modules/wait-for-async/lib/index.js from /project/node_modules/ringcentral-softphone/dist/src/softphone.js not supported.
Instead change the require of index.js in /project/node_modules/ringcentral-softphone/dist/src/softphone.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/project/node_modules/ringcentral-softphone/dist/src/softphone.js:17:42) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v20.17.0
npm error Lifecycle script `start` failed with error:
npm error code 1
While starting the project in production mode, I receive an error
A few days ago the package
wait-for-async
introduced a significant change, where it was moved to ES modulestylerlong/wait-for-async@3c4cdd4#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R7
but
ringcentral-softphone-ts
package are commonJS module.The text was updated successfully, but these errors were encountered: