Compiling with usermod only works now and then

I am building a usermod but I’m having trouble building it. (vscode platformio using version 0.16-alpha, because the usermod system looks nicer than before)

I got it to work, the config page is showing correctly and the code is working.
I made some changes in the code and upload it again, the config is not showing.
The message “Usermods configuration not found.” is shown.

After looking for errors, I could not find any.

Then I decided to try and run the EXAMPLE usermod, got it to build, config is showing correctly. I made a copy, and only changed the name, built it and the config is showing the correct name. Added some variables in this copied usermod, built again, config not showing “Usermods configuration not found.”

Removed all the changes, built the copy of EXAMPLE again, config is not showing. Even the code is the same as the one that worked. Even the included EXAMPLE shows “Usermods configuration not found.”

It looks like the build only works the first time the usermod is uploaded?
How can I test my code if the upload does not work consistent. I always think I did something wrong, but it just doesn’t add the usermod.

What am I doing wrong?

Thanks for the link, this helped me fix my problem!