Duolith docs

Errors E0400 to E0499

E0456 Font weight that is not one

Message this @font-face cannot be shipped in the app: `font-weight: value` is not a weight

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A @font-face's font-weight says which weight its file is: normal, bold, a number from 1 to 1000, or a range such as 100 900 for a variable font, which is registered at its first. bolder and lighter are relative to a parent and mean nothing in a @font-face, and any other value cannot be read. The build used to read them as 400 without a word; now it stops.

How to fix it

Write the file's weight as normal, bold or a number, such as font-weight: 600;.

In a terminal

duolith explain E0456

Mentioned in