Skip to content

Conversation

@tebexjaames
Copy link
Contributor

The web component definition in src/webComponents/TebexCheckout.ts was causing issues in a Next + Electron project since it seems to have a SSR portion where HTMLElement isn't defined. This just wraps that class definition in a function which is only called in browser environments. I made sure that the TebexCheckout type is still exported correctly, so it should be fully backwards-compatible.

@tebexjaames tebexjaames requested a review from Chilledson April 1, 2025 10:56
@tebexjaames tebexjaames changed the title Fix broken web component setup in SSR environments 8828489432 Fix broken web component setup in SSR environments Apr 1, 2025
@Chilledson Chilledson changed the base branch from main to release-v1.6.0 April 1, 2025 12:19
@Chilledson
Copy link
Contributor

Hey @tebexjaames could you resolve the merge conflicts? :)

@tebexjaames
Copy link
Contributor Author

@Chilledson Done; just needed a rebuild :)

@Chilledson Chilledson merged commit a94e53f into tebexio:release-v1.6.0 Apr 1, 2025
1 check passed
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.

2 participants