Skip to content
Playground(another site)

bynk.target.browser_bundle_only

Error The browser platform builds only the in-process Bundle topology; --target workers is not a browser build.

The browser platform builds a module that runs in a web page: one in-process bundle, with nothing to deploy. The workers target lays a project out as one Cloudflare Worker per context, joined by Service Bindings, which a browser cannot run. So the two do not combine. Build for the browser with the bundle target, which is the default, or build Workers for the cloudflare platform.

Example

bynk build --target workers --platform browser // ✗ Workers are not a browser build
bynk build --target bundle --platform browser // ✓

In the Book

See also

  • Every code in its category, Other, on the diagnostic index.
  • bynk explain bynk.target.browser_bundle_only shows the same from the installed toolchain, without a network.