Len of untyped nil

Hello @MorseGates,

nil denotes the absence of a value. In this context I would guess that there is not file called features.{toml, yaml or json} in the data/ folder. The referenced line that you highlighted bold tries to access the data in this (non-existing) file, hence nil is returned.

But len expects some kind of sequence whose length can be determined. An absent sequence will cause an error. Make sure you copy all necessary files from the exampleSite folder into the corresponding folders in the root directory of your hugo site.

2 Likes