Trying (and failing) to precompiled autoloaded zsh functions

The above fail to build with error:/nix/store/1ymcmqicfp2cfmwnan7gn7g6rbfgkqjv-zcompile-step:zcompile:5: no functions
Someone well versed in zsh could help me with this piece