Skip to content
Playground(another site)

bynk.package.unsupported_in_dependency

Error A dependency declares an asset or an embed, which would resolve against the consuming project's assets/ or embeds/; a per-package namespace for either isn't designed yet.

A dependency may not declare an asset or an embed, because the path would be resolved against the project that consumes it, whose assets/ or embeds/ folder is not the package's. Move the file into your own project, and have the package take its content as an argument.

Example

commons board // in the package `acme/lib`
asset style = "assets/board.css" // ✗ a dependency cannot declare one
fn sheet() -> String { style.url }
commons board
fn sheet(url: String) -> String { url } // ✓ the project supplies the URL

In the Book

See also

  • Every code in its category, Packages, on the diagnostic index.
  • bynk explain bynk.package.unsupported_in_dependency shows the same from the installed toolchain, without a network.