Open triodan opened 8 months ago
I figured out that this is caused due to lack of null-checking for the passed-in variables. Adding checks like this in the function resolves the issue:
#if content != none {
...
}
However I think the current message is not intuitive, maybe it can be replaced with something like 'content' may be of type none
?
Issue
When a YAML file is imported and passed to a method, the receiving method treats the passed data as type none.
main.typ
:data.yaml
:VSCode will report this error despite compilation preview being successful: