Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ESM #828

Merged
merged 1 commit into from
May 5, 2023
Merged

Fix ESM #828

merged 1 commit into from
May 5, 2023

Conversation

adamjmcgrath
Copy link
Contributor

Changes

createRequire doesn't play nicely with bundlers

References

Fixes #815

Testing

Tested on node:
node --input-type=module -e "import { ManagementClient } from 'auth0/src/index.mjs'; console.log(ManagementClient);"

Tested on serverless-bundle:
AnomalyInnovations/serverless-nodejs-starter@master...adamjmcgrath:serverless-nodejs-starter:master

Tested on serverless-webpack:
#815 (comment)

@adamjmcgrath adamjmcgrath requested a review from a team as a code owner May 5, 2023 10:09
@adamjmcgrath adamjmcgrath added the review:small Small review label May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getting TypeError upon initilizing ManagementClient
2 participants