when attaching library via template makes full template markup disappear make sure all files referenced by library exist

{{ attach_library(‘cyborgtranslate/switcher’) }}

Hadn’t made the JavaScript file yet, and it all disappeared rather than output an error, even in the logs.

Even an empty file will fix this, so even if you do not have any JavaScript for your library yet, create a blank file at the location you specified in your .libraries.yml anyway.

The otherwise-good documentation at




won’t warn you about that.