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

Add a better message when a user doesn't have a Chromium-based browser. #1073

Merged
merged 5 commits into from
May 19, 2022

Conversation

caass
Copy link
Contributor

@caass caass commented May 19, 2022

Certain functionality we use in wrangler depends on a Chromium-based browser. Previously, we would throw a somewhat arcane error that was hard (or impossible) to understand without knowing what we needed. While ideally all of our functionality would work across all major browsers, as a stopgap measure we can at least inform the user what the actual issue is.

Splits out forceChromium functionality, which was only used to open devtools, into its own function.

Adds support for Brave

Closes #606

Certain functionality we use in wrangler depends on a Chromium-based browser. Previously, we would throw a somewhat arcane error that was hard (or impossible) to understand without knowing what we needed. While ideally all of our functionality would work across all major browsers, as a stopgap measure we can at least inform the user what the actual issue is.
@changeset-bot
Copy link

changeset-bot bot commented May 19, 2022

🦋 Changeset detected

Latest commit: e596b42

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

This PR includes changesets to release 1 package
Name Type
wrangler 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

@github-actions
Copy link
Contributor

github-actions bot commented May 19, 2022

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2353392438/npm-package-wrangler-1073

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1073/npm-package-wrangler-1073

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2353392438/npm-package-wrangler-1073 dev path/to/script.js

@caass caass merged commit 6bb2564 into main May 19, 2022
@caass caass deleted the better-chromium-error branch May 19, 2022 17:20
@github-actions github-actions bot mentioned this pull request May 19, 2022
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.

fix(dev): display helpful error message if a Chromium browser is not available to render DevTools
2 participants