Compilation error with minimum configuration for developing ststm32 - Zephyr project in C++ not C

By the way I too often get following error,

Error: Couldn't find target config target-app-5914d37e62d23f5e4a95.json

Regardless of which ide I choose (CLion/VSCode) I am wondering what causes the mentioned error?