I am trying to produce an unlocked package from my VS Code project. The code and components deploy without complaint to my Dev Org (SFDX: Deploy Source to Org) and work according to expectations.
I can also create a package version when (but only when) using the --skipvalidation flag; this deploys to a scratch, sandbox or other dev org and works properly there as well.
But when I try to build a production grade package (leaving away the --skipvalidation) I get a screenful of error messages (the picture shows only the top few lines, there are dozens and dozens more):
my command is: sfdx force:package:version:create -p packagename -d force-app -k xxxx -c -w 10 -v devHub
- I have no idea what to do - am I missing something fundamental?
- is my code too complex?
- does it have to do with the fact that I am using nested classes?
- does it have to do with my using generics (as in
SObject
instead ofQuote
)? - is it the sheer size or complexity of my classes? (the largest has 932 lines of source code, 447 lines by the unit test's count)
- none of these guesses seem to be any good: is it a bug in sfdx?