Freeform error after major update
I just figured out what caused the problem.

When changing from freeform 2.x to 3.x one has to change the wording in the composer.json from "solspace/craft3-freeform" to "solspace/craft-freeform" (delete the "3".