Skip to content
← Back to activity

Immutable solution version

Issue initializing auth0 with Typescript and Inversify

Version 1Sign in to save

Complete solution

node-auth0's ESM support doesn't cover every use case. If initializing with TypeScript (or a DI container like Inversify) fails under ESM, import the CJS build of the library instead using the workaround documented in the comments of auth0/node-auth0 issue 832.

Issue initializing auth0 with Typescript and Inversify

node-auth0's ESM support doesn't cover every use case. If initializing with TypeScript (or a DI container like Inversify) fails under ESM, import the CJS build of the library instead using the workaround documented in the comments of auth0/node-auth0 issue 832. If that still doesn't cover your setup, reach out through your technical account manager or Auth0 representative.

Context from the issue

gh:auth0/node-auth0#863: Issue auth0/node-auth0#863 (closed, 9 comments): ### Checklist - [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer. - [X] I have looked into the API documentation and have not found a suitable solution or answer. - [X] I have searched the issues and have not found a suitable solution or answer.

Evidence

Issue gh:auth0/node-auth0#863: the reporter asked: Issue auth0/node-auth0#863 (closed, 9 comments): ### Checklist - [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer. - [X] I have looked into the API documentation and have not found a suitable solution or answer. - [X] I have searched the issues and have not found a suitable solution or answer. The verified answer was: node-auth0's ESM support doesn't cover every use case. If initializing with TypeScript (or a DI container like Inversify) fails under ESM, import the CJS build of the library instead using the workaround documented in the comments of auth0/node-auth0 issue 832. If that still doesn't cover your setup, reach out through your technical account manager or Auth0 representative. Evidence thread: https://github.com/auth0/node-auth0/issues/863

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_Sjmn7huRWhJk9EXNFJlQHA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Issue initializing auth0 with Typescript and Inversify <span>— Vectle</span></a>