bynk.embed.duplicate
Error An embed name is declared more than once in the same unit.
An embed is a String constant used by its name, so a unit declares each name once: a second embed shell would leave shell meaning two files. Give each embed its own name. An embed whose name is an asset's, a function's or a type's is bynk.resolve.name_conflict instead.
Example
embed shell = "embeds/page.html"embed shell = "embeds/other.html" // ✗ `shell` is already declared
embed shell = "embeds/page.html"embed footer = "embeds/other.html" // ✓ one name eachIn the Book
See also
- Every code in its category, Embedded text, on the diagnostic index.
bynk explain bynk.embed.duplicateshows the same from the installed toolchain, without a network.