Node-RED: Not properly configured nodes (annoying for deployment)

How to fix not properly configured nodes in Node-RED: The workspace contains some nodes that are not properly configured.

Problem

Untitled

When wanting to deploy this can happen.

Solution

go to the window on the right side, click on subflows.

Untitled

And then disable all nodes that are not “properly configured”:

Untitled

After this the deployment shall work just fine.