Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tmilewski
Copy link
Member

@tmilewski tmilewski commented Apr 11, 2025

Description

Fixes ECO-595

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@tmilewski tmilewski self-assigned this Apr 11, 2025
@vercel
Copy link

vercel bot commented Apr 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 11, 2025 5:09pm

@changeset-bot
Copy link

changeset-bot bot commented Apr 11, 2025

🦋 Changeset detected

Latest commit: ac022fb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/chrome-extension Patch
@clerk/clerk-js Patch
@clerk/clerk-expo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tmilewski
Copy link
Member Author

!snapshot

@tmilewski
Copy link
Member Author

!snapshot

@tmilewski tmilewski marked this pull request as ready for review April 11, 2025 17:17
@tmilewski tmilewski requested review from a team April 11, 2025 17:17
@tmilewski tmilewski merged commit ba6d2ee into main Apr 11, 2025
31 of 32 checks passed
@tmilewski tmilewski deleted the tm/rhc-test branch April 11, 2025 17:29
@wong2
Copy link

wong2 commented Jun 22, 2025

I'm getting this error with @clerk/chrome-extension:

Uncaught Error: Cannot find module '@stripe/stripe-js'

Any suggestions?

@tmilewski
Copy link
Member Author

Hi @wong2, please note that Clerk Billing is not available for Chrome Extensions due to limitations imposed by Chrome. Stripe requires remotely hosted code to function, which, for security purposes, causes Google to deny Chrome Store approvals.

Could you confirm for me that you’re not attempting to use Billing components?

Thank you!

@wong2
Copy link

wong2 commented Jun 22, 2025

@tmilewski Oh, I'm trying to use Clerk Billing in my extension, I'm using the PricingTable component.

Perhaps you should add a notice in the Chrome Extension docs? The PricingTable component is documented and exported from the package, so I thought it's ok to use it.

image

@tmilewski
Copy link
Member Author

@wong2 I've added a PR to better catch this case in code here: #6179

I'll see what we can do about the documentation on two fronts:

  1. Better indicate that the Clerk UI components (and related) sections of the sidebar are global and not framework-specific.
  2. Add notices for the unsupported components.

@wong2
Copy link

wong2 commented Jun 23, 2025

@tmilewski Thanks!

Does this mean that the only way to use Billing in a Chrome extension is to enable syncHost and jump from the extension to the website to display the PricingTable? That way, once the payment is completed, the extension should be able to sync to the user's plan status, right?

@tmilewski
Copy link
Member Author

@wong2 The answer there is "it depends." If you use a typical popup extension (or other type that you re-open) then, yes, everything should work as expected. If you're using an extension like a sidePanel, and it's persistent, then I would suggest trying out __experimental_syncHostListener. I haven't explicitly tested it against billing yet, but I believe it should work.

@wong2
Copy link

wong2 commented Jun 23, 2025

@tmilewski I will give it a try! My use case is the extension opens a persistent page (chrome-extension://<extension-id>/app.html).

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.

4 participants