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

Adds .default so create function could be found #78

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

dave-smartystreets
Copy link
Contributor

Adds .default to code to continue using Common JS

@dave-smartystreets dave-smartystreets merged commit fe94968 into master Dec 6, 2023
4 checks passed
@greg5green
Copy link

Just in case anyone else comes here after seeing an error of Uncaught TypeError: Cannot read properties of undefined (reading 'create') coming from line 9 of HttpSender.js after upgrading their version of this SDK, you might need to update whatever bundler you're using in your project to handle the cjs file extension.

Axios switched their file extension somewhere between 0.26.1 and 1.62. We were handling js, mjs, ts, but not cjs. Once updating our webpack config to handle this, everything worked great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants