contentType lifecycle cancel a create/update issues in admin console

I’ve found the issue. The problem is that in strapi there is an abuse of instanceof conditions. Since strapi is a plungin based library and due to the way node traverses the class path resolution instanceof sould be totally avoided since a ValidationError for example could not return true in a if (err instanceof ValidationError) because the ValidationError the code is referring to belongs to different package.
This happens for example when you create a plugin inside your strapi project since you will have two different node_modules cp.
I’ve soplved moving out of strapi my plugin. Cleaning and tiding dependencies and usgin yalc for local dependency management