Updating to 3.62.2 causes errors with `.default` properties
See original GitHub issueGeneral information
- SDK version: 3.62.2
- Environment: Sandbox
- Browser and OS: Any
Issue description
Installing 3.62.2, compiled with rollup.js into our build, I get errors relating to package default imports:
Uncaught (in promise) TypeError: i.default is not a function
emit framebus.js:45
emit index.js:71
_cleanUpFocusIntercepts hosted-fields.js:730
removeExtraFocusElements focus-change.js:80
removeExtraFocusElements focus-change.js:74
_cleanUpFocusIntercepts hosted-fields.js:729
HostedFields hosted-fields.js:623
promise callback*HostedFields hosted-fields.js:617
1 index.js:260
promise callback*create$1 index.js:259
wrapPromise wrap-promise.js:18
createHostedFields payment-step.js:299 // Our code below here in this backtrace
step_loaded payment-step.js:39
CheckoutController checkout-controller.js:49
_rollbar_wrapped rollbar.min.js:1
dispatch checkout-step.js:39
api_call checkout-step.js:179
action_finish shipping-step.js:128
CheckoutStep checkout-step.js:25
_rollbar_wrapped rollbar.min.js:1
o rollbar.min.js:2
CheckoutStep checkout-step.js:20
ShippingStep shipping-step.js:16
execute shipping-step.js:152
i system-core.js:274
e system-core.js:270
C system-core.js:219
Pardon the systemjs chaff here, but I think it provides context.
i.default
in this case is the code referring to the framebus
package, which is updated to version 4. Version 4 publishes some ESM-derived code that has a .default
property on what’s returned from require — in some bundlers. With rollup, this is not the case and the code fails. Switching to esm-based modules is unfortunately a breaking change, it seems, with the state of the ecosystem.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Unable to update the specified properties for on-premises ...
However, it failed. Detailed error message: Unable to update the specified properties for on-premises mastered Directory Sync objects or ...
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
What Causes TypeError: Cannot Read Property of Undefined. Undefined means that a variable has been declared but has not been assigned a value....
Read more >Resolve the "Internal Failure" error in CloudFormation - AWS
If you're creating or updating your CloudFormation stack, you can receive an "Internal Failure" error when an operation on a resource fails.
Read more >Troubleshooting an Error Pushing/Persisting Properties and ...
If a lot of data is being collected on these devices, the devices may be causing congestion on the server when they all...
Read more >VS 2022 Preview 2, An error occurred while loading the ...
In VS 2019, the project properties open, and in 2022, after updating to ... and choose 'General' to restore the setting to the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good luck. This stuff is super gross right now — it might actually mean bundling it into braintree-web to fix it.
This should be fixed in v3.63.0
Let us know if it’s still not working correctly for you