Other
Node.js TypeError Issue (esModuleInterop)
When using the Descope Node.js SDK, you may encounter a TypeError
, relating to a problem that occurs when our CommonJS module is being imported into an ES6 module codebase. This guide explains how resolve this issue.
esModuleInterop Issue
When encountering this TypeScript error message: TypeError: node_sdk_1.default is not a function
,
you can resolve this by this configuration to your tsconfig
file:
To learn more about esModuleInterop
, you can read about it here.
If you have any other questions about Descope or our Node.js SDK, feel reach to reach out to us!
Was this helpful?